473,407 Members | 2,326 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,407 software developers and data experts.

Ul Li base dropdown menu is abnormally behave in IE

245 100+
Hey all,
I have integrated UL, Li base dropdown menu but it is bevaing abnormal in IE. Can somebody have a look on my code and help me out to fix the problem. Here is the Link of my website.

*Note: It is working fine in Safari and Firefox Mozilla but creating problem in IE

And here is the HTML code.

Expand|Select|Wrap|Line Numbers
  1. <span class="preload1"></span>
  2.         <span class="preload2"></span>
  3.         <ul id="nav">
  4.             <li class="top"><a href="#nogo1" class="top_link"><span>Home</span></a></li>
  5.             <li class="top"><a href="#nogo2" id="products" class="top_link"><span class="down">jQuery</span></a>
  6.                 <ul class="sub">
  7.                     <li><a href="#nogo3" class="fly">Time | Date | Color picker</a></li>
  8.                     <li><a href="#nogo7" class="fly">Accordions | Menu | Form</a></li>
  9.                     <li><a href="#nogo19">Flash Guns</a></li>
  10.                     <li><a href="#nogo20">Tripods</a></li>
  11.                 </ul>
  12.             </li>
  13.             <li class="top"><a href="#nogo22" id="services" class="top_link"><span class="down">MooTools</span></a>
  14.                 <ul class="sub">
  15.                     <li><a href="#nogo3" class="fly">Time | Date | Color picker</a></li>
  16.                     <li><a href="#nogo7" class="fly">Accordions | Menu | Form</a></li>
  17.                     <li><a href="#nogo19">Flash Guns</a></li>
  18.                     <li><a href="#nogo20">Tripods</a></li>
  19.                 </ul>
  20.             </li>
  21.             <li class="top"><a href="#nogo53" id="shop" class="top_link"><span class="down">Others</span></a>
  22.                 <ul class="sub">
  23.                     <li><a href="#nogo3" class="fly">Time | Date | Color picker</a></li>
  24.                     <li class="mid"><a href="#nogo7" class="fly">Accordions | Menu | Form</a></li>
  25.                     <li><a href="#nogo19">Flash Guns</a></li>
  26.                     <li><a href="#nogo20">Tripods</a></li>
  27.                 </ul>
  28.             </li>
  29.         </ul>
  30.  
and here is CSS Code
Expand|Select|Wrap|Line Numbers
  1. .preload1 {background: url(../images/img-04.png);}
  2. .preload2 {background: url(../images/img-04.png);}
  3. #nav {padding:0; margin:0; list-style:none; height:53px; background:url(../images/img-03.png) repeat-x; position:relative; z-index:500; font-family:arial; }
  4. #nav li.top {display:block; float:left; height:53px;}
  5. #nav li a.top_link {display:block; height:50px; line-height:48px; color:#00FFF6; text-decoration:none; font-size:12px; font-weight:normal; padding:0px; cursor:pointer;}
  6. #nav li a.top_link span {float:left; display:block; padding:0 24px 0 24px; height:50px;}
  7. #nav li a.top_link span.down {float:left; display:block; padding:0 24px 0 24px; height:50px;}
  8.  
  9. #nav li:hover a.top_link { color:#fff; background: url(../images/img-04.png) no-repeat center top;}
  10. #nav li:hover a.top_link span {background:url(../images/img-04.png) no-repeat center top;}
  11. #nav li:hover a.top_link span.down {background:url(../images/img-04.png) no-repeat center top;}
  12.  
  13. /* Default list styling */
  14.  
  15. #nav li:hover {position:relative; z-index:200;}
  16.  
  17. #nav li:hover ul.sub
  18. {left:1px; top:51px; background: #030606; padding:0px; border:0px solid #FF0000; white-space:nowrap; width:150px; height:auto; z-index:300;}
  19. #nav li:hover ul.sub li
  20. {display:block; height:30px; position:relative; float:left; width:150px; font-weight:normal;}
  21. #nav li:hover ul.sub li a
  22. {display:block; font-size:12px; height:26px; width:148px; line-height:26px; text-indent:5px; color:#00FFF6; text-decoration:none;border-bottom:1px dashed #026A67;}
  23. #nav li ul.sub li a.fly
  24. { background:url(../images/arrow.gif) 140px 6px no-repeat;}
  25. #nav li:hover ul.sub li a:hover 
  26. {color:#fff; border-color:#fff;}
  27. #nav li:hover ul.sub li a.fly:hover
  28. {background:url(../images/arrow_over.gif) 140px 6px no-repeat; color:#fff;}
  29.  
  30.  
  31. #nav li:hover li:hover ul,
  32. #nav li:hover li:hover li:hover ul,
  33. #nav li:hover li:hover li:hover li:hover ul,
  34. #nav li:hover li:hover li:hover li:hover li:hover ul
  35. {left:153px; top:-4px; background: #030606; padding:3px; border:0px solid #FF0000; white-space:nowrap; width:150px; z-index:400; height:auto;}
  36.  
  37. #nav ul, 
  38. #nav li:hover ul ul,
  39. #nav li:hover li:hover ul ul,
  40. #nav li:hover li:hover li:hover ul ul,
  41. #nav li:hover li:hover li:hover li:hover ul ul
  42. {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;}
  43.  
  44. #nav li:hover li:hover a.fly,
  45. #nav li:hover li:hover li:hover a.fly,
  46. #nav li:hover li:hover li:hover li:hover a.fly,
  47. #nav li:hover li:hover li:hover li:hover li:hover a.fly
  48. {background:#121313 url(arrow_over.gif) 140px 6px no-repeat; color:#fff; border-color:#fff;} 
  49.  
  50. #nav li:hover li:hover li a.fly,
  51. #nav li:hover li:hover li:hover li a.fly,
  52. #nav li:hover li:hover li:hover li:hover li a.fly
  53. {background:#030606 url(arrow.gif) 140px 6px no-repeat; color:#00FFF6; border-color:#000;}
  54.  




kind regards,
Mohsin Rafique
Mar 2 '10 #1
2 3725
drhowarddrfine
7,435 Expert 4TB
The comments placed in front of the doctype will put IE into quirks mode. Remove the everything before the doctype.
Mar 2 '10 #2
neovantage
245 100+
I have removed the comments before doctype statement but even then it is not working....
Mar 2 '10 #3

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

Similar topics

1
by: LG | last post by:
I have asked before but I did not get all the answer I wanted. Perhaps I explained too bad. I have my site in frames, and the dropdown list is in the 'left' frame, and I have used javascript so...
3
by: Sander Tekelenburg | last post by:
I'm toying a bit with a horizontal CSS-dependant dropdown menu. See <http://santek.no-ip.org/~st/tests/CSS/cssmenus.php>. Gecko's lack of support of display:inline-block is too bad, but aside...
1
by: Dino Buljubasic | last post by:
Hi, I have a toolbar with several buttons on it, one of which is set up to be as a DropDown button. I also have a context menu with menu items assigend to it so when I click that button, my...
3
by: Bryan | last post by:
Is there a way to make a Menu control ignore the styles set by a stylesheet? The reason I ask is that I have built an ASP.Net site with content pages that use a master page which uses a CSS for...
10
by: goresus | last post by:
Hello there, I am trying to create two dropdown menus in one of my forms so that they behave in the following way: the first menu consists of "categories" of items, which I hard coded into the...
4
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
2
by: William Youngman | last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a...
0
by: temp304 | last post by:
Customize Dropdown Menu is designed to display some choices, as: languages, countries, themes,... but it's differrent from original version in browsers. This tool combine CSS and JavaScript to create...
1
by: redgoals | last post by:
Hi, I have searched the forum for a similar problem but have been unable to find anything. What i am trying to achieve is a dropdown menu which behaves in the following way: 1, Someone...
19
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.