d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Website Drop Down Menu Not Working In Ie
Add Reply New Topic New Poll
Member
Posts: 9,412
Joined: Nov 18 2009
Gold: 20.00
Nov 21 2012 02:41pm
http://www.barcelonadayspa.com/

If you fix this problem, then I will give you 50fg. Thank you very much for helping.

Btw.. this works perfectly in firefox, safari, and chrome. Also, ignore the #wrapper2, that is for a modal box.

Also, the font is different then in other browsers.

CSS
Code
ul#menu {position: relative; margin: 0; padding: 0; text-decoration: none; float: left;  list-style-type: none; }
 ul#menu li { font-family:  "league-gothic-reg", georgia;border-left: 1px solid #004a80;font-size: 29px; display: inline; display: block; float: left; text-decoration: none; padding: 0 .7em;}
 ul#menu li a { color: #000; text-decoration: none; float: left; padding: 5px;}
 ul#menu li:hover {background-color: #004a80;}
 ul#menu li.current{ background-color: #fff;}
 ul#menu li.current a { color: #004a80; }
 ul#menu li.current:hover { color: #FFF; background-color: #004a80;}
 ul#menu li:hover a {color: #FFF; }
 nav ul ul {display: none;}
  ul#menu ul li {font-family: verdana;font-size: 14px; width: 84%;}
  nav ul li:hover ul {padding: 0; padding-top: 10px;display: block;position: absolute;background-color: #004a80; height: 130px;z-index: 1000; margin-top: 44px; margin-left: -119px; width: 394px}
  ul#menu ul li:hover {background-color: #FFFFFF;}
  ul#menu ul li a {padding: 3px;padding-top: 5px; padding-bottom: 5px;}
  ul#menu ul li:hover a {color: #004a80;}
  .rightmen {float: right; width: 50%;padding: 0;text-align: center;}
  .leftmen {float: left; width: 50%;padding: 0;text-align: center;}
  li.current2 { background: #0072bc;}

HTML
Code
<nav>
      <ul id="menu">
      <li class="current"><a href="index.html">Home</a></li>
     
      <li><a href="spa-services.html">Spa Services</a>
       <ul>
        <div class="leftmen">
        <li><a href="professional-massages.html">> Massages</a></li>
        <li><a href="permanent-cosmetics.html">> Cosmetics</a></li>
        <li><a href="skin-needling.html">> Skin Needling</a></li>
        <li><a href="esthetic-services.html">> Esthetic Services</a></li>
        </div>
        <div class="rightmen">
        <li><a href="tanning.html">> Tanning</a></li>
        <li><a href="nuskin-wrinkle-care.html">> Nuskin Wrinkle Care</a></li>
        <li><a href="body-wraps.html">> Body Wraps</a></li>
        <li><a href="weddings-parties.html">> Weddings & Parties</a></li>
        </div>
       </ul>
      </li>
     <div id="wrapper2">
     <li><a class="modalbox" href="#inline" ><u>Book Online</u></a></li></ul>
     <!-- hidden inline form -->
     <div id="inline">
     <h2>Make Your Appointment Here<br /> or Call: (903) 258-6915</h2>
     <form id="contact" action="sendmessage.php" method="post" name="contact">
   <label>Services</label>
    <select name="services" id="select">
    <option value="op1" value="needling">Skin Needling</option>
    <option value="op2">Permanent Cosmetics</option>
    <option value="op3">Tattoo Removal</option>
    <option value="op4">Nuskin* Wrinkle Removal</option>
    <option value="op5">Cellulite Removal</option>
    <option value="op6">Massage</option>
    <option value="op7">Waxing</option>
    <option value="op8">Facials</option>
    <option value="op9">Airbrush tanning or makeup</option>
    <option value="op10">Body Wrap</option></select>
    <br /><br />
    <label for="name">Name</label>
    <input id="name" class="txt" type="name" name="name" /><br />
   
    <label for="tel">Phone</label>
    <input id="tel" class="txt" type="tel" name="tel" /><br />
    <button id="send">Make Your Appointment</button></form></div>
   
    </div>
      </nav>


This post was edited by PixileDust on Nov 21 2012 02:51pm
Member
Posts: 1,807
Joined: Jan 25 2007
Gold: 0.24
Nov 25 2012 03:51pm
Put this in the very first line of your HTML page and it should work in IE.

Code
<!DOCTYPE html>

Member
Posts: 9,412
Joined: Nov 18 2009
Gold: 20.00
Nov 25 2012 04:15pm
Quote (TCP @ Nov 25 2012 03:51pm)
Put this in the very first line of your HTML page and it should work in IE.

Code
<!DOCTYPE html>


Already have that on every page.
Member
Posts: 1,807
Joined: Jan 25 2007
Gold: 0.24
Nov 27 2012 01:46am
Quote (PixileDust @ Nov 25 2012 10:15pm)
Already have that on every page.


Than its not with the code you showed us, because it works fine for me as you can see in picture below. Only thing I can think of is that you are covering it up with other CSS and HTML elements or forgot to close a tag properly, try validating your site on w3schools.com. Also you really don't need to have a z-index with a value that high(1000), just a z-index of 1 is enough to place it on top of other elements which are at 0. I have also read a while ago that older IE browsers don't support li:hover but only a:hover, but don't really know much about that since I am on IE 9.

http://postimage.org/image/k0ob2tqt5/

This post was edited by TCP on Nov 27 2012 01:57am
Member
Posts: 9,412
Joined: Nov 18 2009
Gold: 20.00
Dec 3 2012 08:36pm
I've given up on this
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll