Results 1 to 2 of 2

Thread: Div menu issue please help me.

  1. #1
    Join Date
    Jun 2008
    Location
    Pakistan
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Div menu issue please help me.

    Hi all,

    I make div base menu in css, but i have a problem, problem is that when i put this menu in my web page in IE are look better but in Mozilla mix with below div i can understand why it happened. Detail here for my menu.




    <html>
    <head>
    <title>..Menu..</title>
    <style type="text/css">

    .tab-menu{
    padding: 0;
    width: 100%;
    background: transparent;
    voice-family: "\"}\"";
    voice-family: inherit;
    }

    .tab-menu ul{
    font: bold 11px Arial;
    margin:0;
    margin-left: 40px;
    padding: 0;
    list-style: none;
    }

    .tab-menu li{
    display: inline;
    margin: 0 2px 0 0;
    padding: 0;

    }

    .tab-menu a{
    float: left;
    display: block;
    color: white;
    margin: 0 1px 0 0;
    padding: 5px 10px;
    text-decoration: none;
    letter-spacing: 1px;
    background-color: black;
    border-bottom: 1px solid white;
    }

    .tab-menu a:hover{
    background-color: #D25A0B;
    border-color: #D25A0B;
    }



    .tab-menuline{
    clear: both;
    padding: 0;
    width: 100%;
    height: 2px;
    line-height: 2px;
    background: #D25A0B;
    }



    </style>

    </head>

    <body>
    <div class="tab-menu">
    <ul>
    <li><a href="#">Personal</a></li>
    <li><a href="#">Professional</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Tools</a></li>
    <li><a href="#">Forums</a></li>
    </ul>
    </div>

    <div class="tab-menuline">&nbsp;</div>
    </body>
    </html>

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    You missed to add DTD in your page.

    I recommend strict:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •