Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 14-03-2008, 10:28 AM
nisha's Avatar
Junior Member
 
Join Date: Mar 2008
Posts: 18
Default dropdown menu don't work in IE and works in the other browsers

hi,

I am learning css and tried using the dropdown menu with css codes for my site. I coded as per some tutorials in alistpart.com and achieved the dropdown
menu as i needed but when i saw it in IE I was not able to see the dropdown menu. so forget any errors in it if any and yes in Firefox it looks as i wanted.

here is the link to my page :

:: Mr. Chows

the take your mouse over menu in the top links to see the dropdown menu.

and i am also adding the code used for dropdown menu :
HTML Code:
<div id="container">
    <ul id="nav">
        <li id="home"><a href="index.html">Home</a></li>

        <li id="about-us"><a href="about.html">About Us</a></li>
        <li id="menu"><a href="#">Menu</a>
            <ul>
                <li><a href="soups.html">Soups</a></li>
                <li><a href="starters.html">Starters</a></li>
                <li><a href="main_course.html">Main Course</a></li>
                <li class="last"><a href="meal_combos.html">Meal Combos</a></li>
            </ul>
        </li>
        <li id="nutrition-and-hygiene" class="active"><a href="nutrition_hygine.html">Nutrition &amp; Hygiene</a></li>
        <li id="contact"><a href="contactus.html">Contact</a></li>
    </ul>
</div>  
and the css for the drop down menu is below

Quote:
#container {
font-size: 0.8em;
width: 551px;
margin: 0 auto;
}

/* ~~~~~~~~~~ dropdown styles ~~~~~~~~~~ */

#nav {
padding: 0;
margin: 0;
list-style: none;
width: 551px;
height: 42px;
}
#nav a {
display: block;
width: 8em;
background-image: url(../images/top_menu.jpg);
text-indent: -999px;
height: 42px;
}
#nav li {
float: left;

}
#nav li ul {
position: absolute;
width: 8em;
left: -999em;
}
#nav li:hover ul, #nav li.hover ul {
left: auto;
}
#home a {
width: 91px;
}
#about-us a {
width: 106px;
background-position: -91px 0;
}
#menu a {
width: 87px;
background-position: -197px 0;
}
#nutrition-and-hygiene a {
width: 167px;
background-position: -284px 0;
}
#contact a {
width: 100px;
background-position: -451px 0;
}
#home a:hover {
background-position: 0 42px;
}
#about-us a:hover {
background-position: -91px 42px;
}
#menu a:hover {
background-position: -197px 42px;
}
#nutrition-and-hygiene a:hover {
background-position: -284px 42px;
}
#contact a:hover {
background-position: -451px 42px;
}
#home.active a
{
background-position: 0 -42px;
}

#about-us.active a
{
background-position: -91px -42px;

}
#menu.active a
{
background-position: -197px -42px;
}
#nutrition-and-hygiene.active a
{
background-position: -284px -42px;
}
#contact.active a
{
background-position: -451px -42px;
}
#nav li ul a {
text-indent: 0;
background-image: url(../images/img_menu_bullet.jpg);
background-repeat: no-repeat;
background-color: #900000;
height: auto;
width: 10em;
color: #E1AD7A;
text-decoration: none;
padding-top: 5px;
padding-right: 5px;
padding-bottom: 5px;
padding-left: 30px;
background-position: 12px 12px;
border-top: 1px solid #AD0000;
border-left: 1px solid #AD0000;
border-right: 1px solid #AD0000;
}
#nav li ul li a:last-child {
border-bottom: 1px solid #AD0000;
}

#nav li ul li a:hover {
background-image: url(../images/img_menu_bullet.jpg);
background-repeat: no-repeat;
background-position: 12px 12px;
color: #330000;
}
.last
{
border-bottom: 1px solid #AD0000;
}
so please suggest what is the easy and valid way to make the dropdown menu visible in IE.

Help and assistance from anybody will be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 14-03-2008, 10:39 AM
jontywagener's Avatar
Experienced Member
 
Join Date: Oct 2007
Location: South Africa
Posts: 124
Default

which version of IE are you using? because in IE7 the menu displays
__________________
its just me :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 14-03-2008, 10:50 AM
nisha's Avatar
Junior Member
 
Join Date: Mar 2008
Posts: 18
Default

i am talking about IE 6.
Also please check my full site in IE 6 and 7
as i have IE 6 only.

hope u understand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 14-03-2008, 10:59 AM
jontywagener's Avatar
Experienced Member
 
Join Date: Oct 2007
Location: South Africa
Posts: 124
Default

ok. will do.

BTW:
you can download IE7 free here Internet Explorer: Home Page

You can also download an application called multiple IE here: Install multiple versions of IE on your PC | TredoSoft that installs IE6, IE5.5, and IE5.0
__________________
its just me :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 14-03-2008, 11:00 AM
tommylogic's Avatar
Markup Validation Nazi
 
Join Date: Apr 2007
Location: USA
Posts: 3,538
Default

Microsoft will be dropping support for IE6 very soon... you should download IE7 as an alternate browser and keep IE6 for testing purposes. Continue to code for FF2 & IE7 and add conditions for IE6 as needed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 14-03-2008, 11:23 AM
nisha's Avatar
Junior Member
 
Join Date: Mar 2008
Posts: 18
Default

thanks both of u for the links for IE 7 and all your suggestions. for this time u will have to help me with IE 6 and 7 and next time i will go for IE 7.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 02-04-2008, 02:10 PM
sunwukung's Avatar
Junior Member
 
Join Date: Mar 2008
Posts: 4
Default

I'm trying to do something similair myself.
The problem might be because IE6 doesn't recognise the :hover pseudo-class. Here are two methods that seem to be more robust:

Pure CSS vertical Drop Down Menu

Stu Nicholls | CSSplay | Validating drop down cross-browser menu
__________________
"cling to nothing.."
www.sunwukung.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!RSS Share on Facebook Share This Article & VoteForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
If browsers were women Mailno Web Browsers Forum 5 05-05-2008 01:41 PM
Paypal to block 'unsafe browsers' kip Web Browsers Forum 2 20-04-2008 07:03 PM
Cloud Menu - Free Flash XML Menu Graphic Design Links Graphic Design Links 0 11-02-2008 01:41 PM
Jpeg optimization mac browsers vs. windows IE wjc2106 Graphic Design and Web Design Help 1 20-09-2007 11:42 AM
Logo Works Toon Graphic Design Forum 3 07-03-2007 04:17 PM


All times are GMT. The time now is 08:05 AM.



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5