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.

CSS Forum


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



Reply
Problems with dropdown menu in Internet Explorer 7
Old 12-06-2010, 12:29 PM Problems with dropdown menu in Internet Explorer 7
Junior Talker

Posts: 1
Trades: 0
Hi everybody,
I created a simple dropdown menu with CSS and it is working well in Firefox, but of course there are some problems when I'm using Internet Explorer 7:

1) Both dropdown-topics (Site3a, Site3b) are shifted to the next menu-point (Site4), instead of beeing shown right under Site3.

2) In front of both dropdown-topics there are those listing points in the IE 7.

3) Both dropdown-topics (Site3a,Site3b) dont have the same width. Again, only in the IE7.

Heres the code:


Code:
<html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <title>Drop-Down Menu</title>
    <style type="text/css">
      ul#menu{
       margin:2px;
       padding-left:0px;
       list-style-type:none;
       width:auto;
       position:relative;
       display:block;
       height:36px;
       font-size:17px;
        font-weight:inherit;
       background:transparent url(images/OFF.gif) repeat-x top left;
       font-family:Candara;
       border-bottom:2px solid #999999;
       border-top:1px solid #cccccc;
       }
    ul#menu li{
       display:block;
       float:left;
       margin:0;
       padding:0;
       }
    ul#menu li a{
       display:block;
       float:left;
       color:#900;
       text-decoration:none;
       font-weight:bold;
       padding:10px 12px 0 12px;
       height:24px;
       background:transparent url(images/DIVIDER.gif) no-repeat top right;
       }
    ul#menu li a:hover{
       background:transparent url(images/HOVER.gif) no-repeat top right;   
       }
    ul#menu li ul {
       display:none;
       position:absolute;
       float:none;
       top:34px;
       padding:0;
       margin:0;
       }         
    ul#menu li:hover ul {
        display:block;
       height:auto;
       }   
    ul#menu li ul li{
        float:none;
       display:block;
       font-size:17px;
        font-weight:inherit;
       background:transparent url(images/OFF.gif) repeat-x top left;
       font-family:Candara;
       border-bottom:2px solid #999999;
       border-top:1px solid #cccccc;
       }   
    ul#menu li ul li a{
        float:none;
       display:block;
       }

    </style>
    </head>
    <body>

    <ul id="menu">
        <li><a href="index.html" title="">Start</a></li>
         <li><a href="#" title="">Site1</a></li>
        <li><a href="#" title="">Site2</a></li>
       <li><a href="#" title="">Site3</a>
       <ul>
        <li> <a href="#" title="">Site3a</a> </li>
        <li> <a href="#" title="">Site3b</a> </li>
        </ul>
        </li>
        <li><a href="#" title="">Site4</a></li>
        <li><a href="#" title="">Site5</a></li>
        <li><a href="#" title="">Site6</a></li>
    </ul>

    </body>
    </html>
I hope, theres anybody, who is able to help. I'd be very thankful.

Stacy

Last edited by Stacy230; 12-06-2010 at 12:31 PM..
Stacy230 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2010, 07:24 AM Re: Problems with dropdown menu in Internet Explorer 7
CSM
CSM's Avatar
Front-End Developer

Posts: 297
Name: Michael Pehl
Location: Palma de Mallorca
Trades: 0
Is that the complete code?

I would suggest you use a DOCTYPE.
__________________
Chief Web Officer / Front-End Developer / System Engineer

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
CSM is offline
Reply With Quote
View Public Profile Visit CSM's homepage!
 
Reply     « Reply to Problems with dropdown menu in Internet Explorer 7
 

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.62034 seconds with 12 queries