473,394 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Why does two level Drop Down Menu not working in IE and works fine with all browsers?

Hi Every one :)

My Issue is the sub menu level 2 Not working in Internet Explore but it's working perfect in all other browsers.
I Spend more than 6 hours and could not find the solution guys if could help that would be grate :)

You can View the menu in this URL:http://www.1.ashraf.ly

If you test this in IE The digital sub menu will not open my level 2 sub "Laptop"
You can Download the files from the attached file.
You can View my Html Code here:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <title></title>
  7. <link rel="stylesheet" href="menu_style.css" type="text/css" />
  8. </head>
  9.  
  10. <body>
  11.  
  12.       <div class="menu"> 
  13.  
  14.      <ul> 
  15.             <li><a href="#" >Home</a></li>
  16.  
  17.              <li><a href="#" id="current">Products</a>
  18.  
  19.      <ul>
  20.  
  21.              <li class="sub"><a href="#">Digital <img border="0" align="absmiddle" style="float:right; margin-top:11px;"src="images/comnav-arrowover.png"></a>
  22.  
  23.      <ul class="sub">
  24.                     <li><a href="#">Laptop</a></li>
  25.  
  26.                     </ul>
  27.                     </li>
  28.  
  29.         </ul>
  30.         </div>
  31. </body>
  32. </html>
  33.  
You can View my CSS Code here
Expand|Select|Wrap|Line Numbers
  1.  
  2. .menu{
  3.     border:none;
  4.     border:0px;
  5.     margin:0px;
  6.     padding:0px;
  7.     font-family:verdana,geneva,arial,helvetica,sans-serif;
  8.     font-size:14px;
  9.     font-weight:bold;
  10.     color:8e8e8e;
  11.     }
  12. .menu ul{
  13.     background:url(images/menu-bg.gif) top left repeat-x;
  14.     height:43px;
  15.     list-style:none;
  16.     margin:0;
  17.     padding:0;
  18.     }
  19.     .menu li{
  20.         float:left;
  21.         }
  22.     .menu li a{
  23.         color:#666666;
  24.         display:block;
  25.         font-weight:bold;
  26.         line-height:43px;
  27.         padding:0px 25px;
  28.         text-align:center;
  29.         text-decoration:none;
  30.         }
  31.         .menu li a:hover{
  32.             color:#000000;
  33.             text-decoration:none;
  34.             }
  35.     .menu li ul{
  36.         background:#e0e0e0;
  37.         border-left:2px solid #0079b2;
  38.         border-right:2px solid #0079b2;
  39.         border-bottom:2px solid #0079b2;
  40.         display:none;
  41.         height:auto;
  42.         filter:alpha(opacity=95);
  43.         opacity:0.95;
  44.         position:absolute;
  45.         width:225px;
  46.         z-index:200;
  47.         /*top:1em;
  48.         /*left:0;*/
  49.         }
  50.     .menu li:hover ul{
  51.         display:block;
  52.         }
  53.     .menu li li {
  54.         display:block;
  55.         float:none;
  56.         width:225px;
  57.         }
  58.     .menu li ul a{
  59.         display:block;
  60.         font-size:12px;
  61.         font-style:normal;
  62.         padding:0px 10px 0px 15px;
  63.         text-align:left;
  64.         }
  65.         .menu li ul a:hover{
  66.             background:#949494;
  67.             color:#000000;
  68.             opacity:1.0;
  69.             filter:alpha(opacity=100);
  70.             }
  71.     .menu p{
  72.         clear:left;
  73.         }    
  74.     .menu #current{
  75.         background:url(images/current-bg.gif) top left repeat-x;
  76.         color:#ffffff;
  77.         }
  78.  
  79. <!------SUB----------!>
  80.  
  81.          li a:hover{
  82.             color:#0F0;
  83.             text-decoration:none;
  84.             }
  85.  
  86.     li.sub ul.sub{
  87.         background:#e0e0e0;
  88.         border-left:2px solid #0079b2;
  89.         border-right:2px solid #0079b2;
  90.         border-bottom:2px solid #0079b2;
  91.         display:none;
  92.         top:0px;
  93.         left:100%;
  94.         height:auto;
  95.         filter:alpha(opacity=95);
  96.         opacity:0.95;
  97.         position:absolute;
  98.         width:225px;
  99.  
  100.         }
  101.  
  102.  
  103.     li.sub:hover ul.sub{
  104.         display:block;
  105.         left: 100%;
  106.         top: 0;
  107.         }
  108.  
  109.  
  110.  
Thank you,
ASH
Attached Files
File Type: zip drop-down-menu.zip (3.1 KB, 69 views)
Jan 21 '11 #1
0 1380

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: delerious | last post by:
I'm going to build a vertical navigation menu using images in HTML. I want to have a drop-down menu appear next to an image when I move the mouse over it. I know that I could just download any one...
2
by: hemanth.singamsetty | last post by:
Hello there, I've a drop down menu (created using CSS & Javascript -- see code below). My problem is, whenever I click a link on the menu the new page replaces the current page (and the menu...
3
by: scaredemz | last post by:
hi, so i'm creating a dynamic drop-down menu. the menu and the text show up fine in IE but only the drop-down shows in Firefox without the menu text. Below is the fxn code. help pls. function...
1
by: Ziphyre | last post by:
Hi, I've got some problems with horizontal drop down menu. It looks fine under Firefox, a mess under IE. I've noticed the following differences/problems: - Extra space between menu items and...
4
by: Enrika | last post by:
Greetings! I'm working on a CSS drop-down menu, which, to my surprise, is actually working, more-or-less, in both IE *and* Firefox (and Netscape). But there are two changes that I want to make that...
3
by: rsteph | last post by:
I have a javascript drop down menu that I borrowed from a website. It utilizes a little .css to help with formatting. The menu works great, and on all 3 of the browsers I'm concerned about; but I am...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
22
by: Archanak | last post by:
Hi, I am using 2-level CSS Drop Down Menu in my perl/CGI program. here is the code. #!c:/perl/bin/perl.exe use CGI qw(:standard);
0
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
5
by: nfarrier | last post by:
I'm a school teacher trying to get a web page update working doing a drop-down menu. The code works at http://hms.sps.lane.edu but the update that uses more css, including "navigation body"...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.