Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Can anyone help me figure why my menu does this in IE?
Old 11-20-2009, 05:23 PM Can anyone help me figure why my menu does this in IE?
Average Talker

Posts: 27
Name: Wendel
Trades: 0
So i created this website: http://www.ritztheatre.net/ but im having troubles with the menu in IE-7 and 6.

In IE-8, Firefox, and Chrome it looks normal heres a screenshot of it in IE-8:


In IE-7 the submenu rollover shifts to the side..



In IE-6 the submenu covers the top nav when rolled over..








Heres my HTML code im using for the navigation:
Code:
<ul id="nav">
<li><a href="#" title="Get Tickets">Get Tickets</a>
         <ul class="sub">
         <li><a href="comingsoon.html" title="Vip Seating">VIP Seating</a></li>
         <li><a href="comingsoon.html" title="Calender of Events">Calender of Events</a></li>
         <li><a href="boxoffice.html" title="Box Office Info.">Box Office Info.</a></li>
         <li><a href="omingsoon.html" title="Group Sales">Group Sales</a></li>
      </ul>
    </li>
       <li><a href="#" title="About the Ritz">About the Ritz</a>
     <ul class="sub">
         <li><a href="comingsoon.html" title="History">History</a></li>
         <li><a href="directions.html" title="Directions">Directions</a></li>
         <li><a href="comingsoon.html" title="Parking Facilities">Parking Facilities</a></li>
         <li><a href="comingsoon.html" title="Area Hotels">Area Hotels</a></li>
         <li><a href="/comingsoon.html" title="Bars & Restaurants">Bars & Restaurants</a></li>
      </ul>
  </li>
       <li><a href="#" title="Seating">Seating</a>
      <ul class="sub" >
         <li><a href="comingsoon.html" title="Front Orchestra">Front Orchestra</a></li>
         <li><a href="comingsoon.html" title="Orchestra">Orchestra</a></li>
         <li><a href="comingsoon.html" title="VIP Mezzanine">VIP Mezzanine</a></li>
         <li><a href="comingsoon.html" title="Balcony">Balcony</a></li>
      </ul>
    </li>
       <li><a href="#" title="Interior Photos">Interior Photos</a>
         <ul class="sub">
         <li><a href="comingsoon.html" title="Lobby">Lobby</a></li>
         <li><a href="comingsoon.html" title="Concession">Concession</a></li>
         <li><a href="comingsoon.html" title="Main Bar">Main Bar</a></li>
         <li><a href="comingsoon.html" title="Main Auditorium">Main Auditorium</a></li>
         <li><a href="comingsoon.html" title="Front Orchestra">Front Orchestra</a></li>
         <li><a href="comingsoon.html" title="Orchestra">Orchestra</a></li>
         <li><a href="comingsoon.html" title="VIP Mezzanine">VIP Mezzanine</a></li>
         <li><a href="comingsoon.html" title="Balcony">Balcony</a></li>
         <li><a href="comingsoon.html" title="Dressing Rooms">Dressing Rooms</a></li>
         <li><a href="comingsoon.html" title="Office">Office</a></li>
      </ul>
    </li>
    <li><a href="#" title="Venue Rental">Venue Rental</a>
     <ul class="sub" >
         <li><a href="comingsoon.html" title="Rental Info">Rental Info.</a></li>
         <li><a href="comingsoon.html" title="Private Events">Private Events</a></li>
      </ul>
    </li>
    <li><a href="concerts.html" title="Concerts">Concerts</a></li>
    <li><a href="videos.html" title="Videos">Videos</a></li></ul>
     </ul>
And here's the CSS:
Code:
body {
    behavior: url(csshover.htc);
    font-size:11px;
    font-family:Arial, Helvetica, sans-serif;
}
 
p a {
    color: #FFF;
    text-decoration:underline!important;

}
a{
    color:#FFF;
    text-decoration:none;
    }
p a:hover{    text-decoration: none!important;
}

ul#nav {
    list-style: none;
    padding: 0;
    margin: 0;
}


ul#nav li a {
    display: block;
    font-weight: bold;
    padding: 2px 10px;
    background:#0662a8;
}

ul#nav li a:hover{
    background:#c80000;
    color:#fff;
    }
    
ul#nav li {
    float: left;
    position: relative;
    width: 110px;
    text-align: center;
    margin-right:5px;
    border:1px solid #ccc;
    list-style: none;

}

ul#nav li.current a{
    background:#ddd;
    }

ul#nav li.current a:hover{
    background:#888;
    color: #FFF;
    }

li ul {
    display: none;
    position: absolute;
    width:100px;
    top: 0;
    left: 0;
    font-weight: normal;
    padding: 1px 0 10px 0;
    margin-left:-1px;
}

ul#nav li ul.sub li{
    border-width:0 1px 1px 1px!important;
}

ul#nav li ul.sub li a{
    font-weight: normal!important;    
}
li>ul {
    top: auto;
    left: auto;
}

li:hover ul, li.over ul {
    display: block;
}
thank you for taking a look

Last edited by m1nd; 11-20-2009 at 05:42 PM..
m1nd is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-21-2009, 12:29 PM Re: Can anyone help me figure why my menu does this in IE?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
What you're dealing with in IE6 and 7 it's their rotten bug pertaining to positioning and the 'stacking order'. You're going to need conditional comments and separate 'fixes only' css to address the issue.

http://www.timkadlec.com/post.asp?q=43
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 11-23-2009, 11:24 AM Re: Can anyone help me figure why my menu does this in IE?
Experienced Talker

Posts: 48
Name: Pieter
Location: Holland
Trades: 0
Use javascript to detect the browser and make a small aditional css for ie 6/7

Its a work around but thats all because they dont follow the rules
elcosmo is offline
Reply With Quote
View Public Profile
 
Old 11-23-2009, 03:28 PM Re: Can anyone help me figure why my menu does this in IE?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Browser-sniffing scripts are utterly unnecessary since the IE bugs can be 'cured' w/o the need for ANY javascript.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can anyone help me figure why my menu does this in IE?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.85884 seconds with 12 queries