473,506 Members | 17,309 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SubMenus not displayed properly......

tharini
9 New Member
I have designed a html page with menus and sub menus....The Sub menus are displayed properly in firefox but in IE its not working....Please give me some suggestions...
The html code is:

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.  <li class="topitem"><a href="#" title="DECORATIVE GYPSUM"><span>DECORATIVE GYPSUM</span></a>
  4.             <ul>
  5.               <li class="subfirst"><a href="#" title="Cornices"><span>Cornices</span></a>
  6.                   <ul>
  7.                     <li class="subfirst"><a href="designcornices.html" title="Design Cornices">Design Cornices</a></li>
  8.                     <li><a href="plaincornices.html" title="Plane Cornices">Plane Cornices</a></li>
  9.                     <li><a href="jfcornices.html" title="JF Cornices">JF Cornices</a></li>
  10.                     <li><a href="roundcornices.html" title="Round Cornices">Round Cornices</a></li>
  11.                   </ul>
  12.               </li>
  13.               <li><a href="#" title="Moulding"><span>Moulding</span></a>
  14.                   <ul>
  15.                     <li class="subfirst"><a href="plainemouldings.html" title="Plain Moulding">Plain Moulding</a></li>
  16.                     <li><a href="desingmouldings.html" title="Design Moulding">Design Moulding</a></li>
  17.                     <li><a href="roundmouldings.html" title="Round Moulding">Round Moulding</a></li>
  18.                   </ul>
  19.               </li>
  20.               <li><a href="#" title="Center Panels"><span>Center Panels</span></a>
  21.                   <ul>
  22.                     <li class="subfirst"><a href="centerpanels.html" title="Center Panels">Center Panels</a></li>
  23.                     <li><a href="ceiling_l-panels.html" title="Ceiling L Panel">Ceiling L Panel</a></li>
  24.                     <li><a href="domes.html" title="Domes">Domes</a></li>
  25.                   </ul>
  26.               </li>
  27.               <li><a href="#" title="Decorative"><span>Decorative</span></a>
  28.                   <ul>
  29.                     <li class="subfirst"><a href="nishes.html" title="Niches">Niches</a></li>
  30.                     <li><a href="wallpanels.html" title="Wall Panels">Wall Panels</a></li>
  31.                     <li><a href="arcelements.html" title="Arch Elements">Arch Elements</a></li>
  32.                     <li><a href="areches.html" title="Arches">Arches</a></li>
  33.                     <li><a href="fireplace.html" title="Fire Place">Fire Place</a></li>
  34.                   </ul>
  35.               </li>
  36.               <li><a href="#" title="Pillars"><span>Pillars</span></a>
  37.                   <ul>
  38.                     <li class="subfirst"><a href="pillars.html" title="Pillars">Pillars</a></li>
  39.                     <li><a href="brackets.html" title="Brackets">Brackets</a></li>
  40.                     <li><a href="capitals.html" title="Capital">Capital</a></li>
  41.                     <li><a href="pediment.html" title="Pediment">Pediment</a></li>
  42.                   </ul>
  43.               </li>
  44.               <li><a href="dtechnical.html" title="Technical Specification">Technical Specification</a></li>
  45.             </ul>
  46.           </li>
  47.         <li class="topitem"><a href="#" title="CEILING "><span>CEILING </span></a>
  48.             <ul>
  49.               <li class="subfirst"><a href="grgceilingtiles.html" title="GRG Ceiling Tiles">GRG Ceiling Tiles</a></li>
  50.               <li><a href="grgfully.html" title="GRG Fully Perforated">GRG Fully Perforated</a></li>
  51.               <li><a href="mineralhigh.html" title="Mineral Fibre Ceiling Tiles(High Density)">Mineral Fibre Ceiling Tiles(High Density)</a></li>
  52.               <li><a href="minerallow.html" title="Mineral Fibre Ceiling Tiles(Low Density)">Mineral Fibre Ceiling Tiles(Low Density)</a></li>
  53.             </ul>
  54.           </li>
  55.         <li class="topitem"><a href="#" title="SUSPENSION SYSTEM"><span>SUSPENSION SYSTEM</span></a>
  56.             <ul>
  57.               <li class="subfirst"><a href="aluminiumsilhouette.html" title="Aluminum Silhouette (16x32)">Aluminum Silhouette (16x32)</a></li>
  58.               <li><a href="gi15x42.html" title="G.I. Silhouette (15x42)">G.I. Silhouette (15x42)</a></li>
  59.               <li><a href="gi15x30.html" title="G.I. Plain(15x30)">G.I. Plain(15x30)</a></li>
  60.               <li><a href="gi24x32.html" title="G.I. Plain(24x32)">G.I. Plain(24x32)</a></li>
  61.               <li><a href="gi24x38.html" title="G.I. Plain(24x38)">G.I. Plain(24x38)</a></li>
  62.               <li><a href="aluminiumgrid.html" title="Aluminum Grid Silhouette">Aluminum Grid Silhouette</a></li>
  63.             </ul>
  64.           </li>
  65.         <li class="topitem"><a href="#" title="FLOORING"><span>FLOORING</span></a>
  66.             <ul>
  67.               <li class="subfirst"><a href="range.html" title="Range &amp; Dimsnsions">Range & Dimsnsions</a></li>
  68.               <li><a href="accessories.html" title="Accessories">Accessories</a></li>
  69.               <li><a href="additional.html" title="Additional Accessories">Additional Accessories</a></li>
  70.               <li><a href="ftechnical.html" title="Technical Specification">Technical Specification</a></li>
  71.             </ul>
  72.           </li>
  73.         <li class="topitem"><a href="#" title="FOILS"><span>FOILS</span></a>
  74.             <ul>
  75.               <li class="subfirst"><a href="wooden.html" title="Wooden Foils">Wooden Foils</a></li>
  76.               <li><a href="kinder.html" title="Kinder Foils">Kinder Foils</a></li>
  77.               <li><a href="decorative.html" title="Decorative Foils">Decorative Foils</a></li>
  78.               <li><a href="glass.html" title="Glass Foils">Glass Foils</a></li>
  79.               <li><a href="nature.html" title="Nature Foils">Nature Foils</a></li>
  80.               <li><a href="writingboard.html" title="Writing Board &amp; Cork Foils">Writing Board &amp;amp; Cork Foils</a></li>
  81.               <li><a href="gold_silver.html" title="Special Gold/Silver Foils">Special Gold/Silver Foils</a></li>
  82.               <li><a href="uni.html" title="Uni Foils">Uni Foils</a></li>
  83.               <li><a href="decoborders.html" title="Deco Borers">Deco Borers</a></li>
  84.               <li><a href="decostickers.html" title="Deco Stickers">Deco Stickers</a></li>
  85.               <li><a href="vitroborders.html" title="Vitro Borders">Vitro Borders</a></li>
  86.               <li><a href="installations.html" title="Installations">Installations</a></li>
  87.             </ul>
  88.           </li>
  89.  
  90.  
  91.  
The css code is given below:

Expand|Select|Wrap|Line Numbers
  1.  
  2. ul#css3menu,ul#css3menu ul{
  3.     margin:0;list-style:none;background-color:#000;background-image:url("menubk.png");background-repeat:repeat;border-width:0px;border-style:solid;border-color:#999999;-moz-border-radius:0px;-webkit-border-radius:0px;border-radius:0px;}
  4. ul#css3menu ul{
  5.     display:none;position:absolute;left:-1px;top:98%;-moz-box-shadow:0.7px 1px 1px #777777;-webkit-box-shadow:0.7px 1px 1px #777777;box-shadow:0.7px 1px 1px #777777;padding:0 9px 9px;background-color:#333;background-image:none;border-width:1px;border-style:solid;border-color:#5A5E60;}
  6. ul#css3menu li:hover>*{
  7.     display:block;}
  8. ul#css3menu li:hover{
  9.     position:relative;}
  10. ul#css3menu ul ul{
  11.     position:absolute;left:98%;top:-2px;}
  12. ul#css3menu{
  13.     padding:1px 1px 1px 0;display:block;font-size:0;float:left;}
  14. ul#css3menu li{
  15.     display:block;white-space:nowrap;font-size:0;float:left;}
  16. ul#css3menu>li,ul#css3menu li{
  17.     margin:0 0 0 1px;}
  18. ul#css3menu ul>li{
  19.     margin:1px 0 0;}
  20. ul#css3menu a:active, ul#css3menu a:focus{
  21.     outline-style:none;}
  22. ul#css3menu a{
  23.     display:block;vertical-align:middle;text-align:left;text-decoration:none;font:12px Arial;color:#cccccc;cursor:default;padding:10px;background-color:#333;background-image:url("menubk.png");background-position:0 50%;border-width:0px;border-style:none;border-color:#6655FF;}
  24. ul#css3menu ul li{
  25.     float:none;margin:9px 0 0;}
  26. ul#css3menu ul a{
  27.     text-align:left;padding:8px 0 0 0;background-color:#333;background-image:none;border-width:1px 0 0 0;border-style:solid;border-color:#262626;font:13px Arial,sans-serif;color:#cccccc;text-decoration:none;}
  28. ul#css3menu li:hover>a{
  29.     background-color:#00aaff;border-color:#665500;border-style:none;font:12px Arial;color:#ffffff;text-decoration:none;background-image:url("menubk.png");background-position:0 100%;}
  30. ul#css3menu img{
  31.     border:none;vertical-align:middle;margin-right:20px;width:24px;height:24px;}
  32. ul#css3menu ul img{
  33.     width:6px;height:12px;}
  34. ul#css3menu img.over{
  35.     display:none;}
  36. ul#css3menu li:hover > a img.def{
  37.     display:none;}
  38. ul#css3menu li:hover > a img.over{
  39.     display:inline;}
  40. ul#css3menu span{
  41.     display:block;overflow:visible;background-position:right center;background-repeat:no-repeat;padding-right:41.5px;}
  42. ul#css3menu ul span{
  43.     background-image:url("arrow.gif");padding-right:27px;}
  44. ul#css3menu ul li:hover>a{
  45.     background-color:#333;background-image:none;border-style:solid;border-color:#262626;font:13px Arial,sans-serif;color:#1F80AE;text-decoration:none;}
  46. ul#css3menu li.topfirst>a{
  47.     height:16px;line-height:16px;border-radius:0px 0 0 0px;-moz-border-radius:0px 0 0 0px;-webkit-border-radius:0px 0 0 0px;text-shadow:#000000 0px -1px 1px;}
  48. ul#css3menu li.topfirst:hover>a{
  49.     line-height:16px;text-shadow:#3d3d3d 0px -1px 1px;}
  50. ul#css3menu li.topitem>a{
  51.     height:16px;line-height:16px;text-shadow:#000000 0px -1px 1px; text-align:center;}
  52. ul#css3menu li.topitem:hover>a{
  53.     line-height:16px;text-shadow:#3d3d3d 0px -1px 1px;}
  54. ul#css3menu._>li>a{
  55.     padding:0;}
  56. ul#css3menu li.subfirst>a{
  57.     background-color:#333;background-image:none;border-width:0;border-style:none;padding:0;font:13px Arial,sans-serif;color:#cccccc;text-decoration:none;}
  58. ul#css3menu li.subfirst:hover>a{
  59.     background-color:#333;background-image:none;border-style:none;font:13px Arial,sans-serif;color:#1F80AE;text-decoration:none;}
  60. ul#css3menu li.toplast>a{
  61.     height:16px;line-height:16px;border-radius:0 0px 0px 0;-moz-border-radius:0 0px 0px 0;-webkit-border-radius:0 0px 0px 0;text-shadow:#000000 0px -1px 1px;}
  62. ul#css3menu li.toplast:hover>a{
  63.     line-height:16px;text-shadow:#3d3d3d 0px -1px 1px;}
  64.  
Sep 6 '10 #1
1 1904
kovik
1,044 Recognized Expert Top Contributor
You cannot have a pure CSS dropdown navigation in old versions of IE (namely IE6). <li> elements cannot have a :hover psuedo-class as far as IE is concerned. Also, IE6 does not recognize the direct-child selector (">"). I've forgotten how much IE7 is aware of right now, but some of this is probably incompatible there as well.
Sep 6 '10 #2

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

Similar topics

1
11309
by: Venkatesh | last post by:
Hi Everybody, This is the first timw I am entering into this Group. I am developing a VB Project with an MDI form. I want to display IE Favorites into my application. For this I need to...
0
1235
by: gagan | last post by:
Hello, I am facing a weird problem while displaying my String in JFrame while prototyping Hindi character display To explain this a little bit. I am pushing unicode characters into a Varchar2...
0
2315
by: Krzysztof Fink-Finowicki via .NET 247 | last post by:
I have problem with TEXTAREA HTML tags in my Web application (MSIE 6.0). User fills-in content of TEXTAREA on HTML dialog window. After accepting, content of TEXTAREA from dialog window is...
10
1754
by: Thomas Osthege | last post by:
Hi all, I thought I got along with a 3 column design and CSS. But still IE and Firefox show images that overflow the center box different. Please have a look at this example:...
0
1016
by: Mamatha | last post by:
Hi, I am developing a video capture program in C#.NET,In that application if i click on one button then a window will be displayed that is exactly like windows media encoder session window...
2
1031
by: blackbur | last post by:
I have created an asp.net website that looks fine when I view it from my computer, but when I browse from another computer the controls are overlapping each other in some cases. In other cases the...
0
1023
by: eesmav | last post by:
I created a website using google pages http://checkforinfo.googlepages.com This page is displayed properly in IE7 and Firefox 2. But it doesnt display properly in IE6. The links section which should...
4
1610
by: ssylee | last post by:
I have set my year value in the register on my RTC (DS1302) to be 2008 using this code: // This function sets the year on the RTC // Note: The year takes in only the last two digits of the year...
10
1177
by: Abhinavnaresh | last post by:
Hi all, I am developing a web application,and i have to access it from different machines.but my problem is that,the web controls that i am using shift when the page is displayed on different...
2
7617
by: pgm16 | last post by:
I just added a WYSIWYG editor on my website so my users can format their content any way they want. The editor works fine and is successfully saving the html coded content on the database. The...
0
7371
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
7479
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
5617
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5037
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
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...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
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 ...
0
410
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...

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.