473,804 Members | 3,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ul Li base dropdown menu is abnormally behave in IE

245 New Member
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 3753
drhowarddrfine
7,435 Recognized Expert Expert
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 New Member
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
2329
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 that when you click on the selected word in the dropdown menu, it automatically opens up an URL. I want it to open up in the right frame. As it now opens in the 'left' frame. I know you can do it with target in html. But I want it open up the...
3
2035
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 from that both Mozilla 1.7.5 and Opera 8.0 (for Mac, build 1945) for some reason do not draw the third level's background and borders unless you hover over them. iCab and Safari do (as can be seen in the screenshot on that page). I wonder why....
1
4003
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 context menu shows up. I have 2 questions: 1) how do I find out which menu item was clicked so I can use my Select Case statement to perform appropriate actions depending on menu
3
1387
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 formatting. The problem with this is that I have a menu on the master page that I want to behave differently than the links on the content pages, but the CSS formatting applies itself to the page links AND the menu links regardless of what I try....
10
8054
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 form. i am looking to relate the second menu with the first one such that, as soon as you choose an option from the first menu, the second menu lists only the name of those items that falls in the "category" chosen in the first menu. I have a...
4
2349
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 list/menu appears. When the page is opened in the browser (as it appears by default), the dropdown menu positions are correctly displayed. But when I scroll the page and then move the mouse over any menu item of the navbar, the dropdown menu is not...
2
10300
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 given column. We are also using another dropdown menu that the user can use to select data using another quesry using the SelectedIndex change method. Upon initial page load everything works fine and the user is presented with a SharePoint type menu....
0
1523
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 a dropdown you can add image to tilte, every choice. Version 2: check if JavaScript is disabled, then add normal dropdown menu Let's try dropdown below and feel differences. Tested: IE 7, Opera 9, Firefox 2, Netscape 8. Demo:...
1
2177
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 selects an category from the first dropdown menu 2, if the category has subcategories then dynamically create a new dropdown underneath and in the process fill it with the subcategories from the chosen option in the first menu. 3, keep doing the above...
19
3700
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 code for this from a tutorial but that menu was flush-left justified. Not what I want. Subsequent searches on google on how to center yielded a
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10319
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10070
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5508
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.