Results 1 to 2 of 2

Thread: Underline Horizontal Menu - DD CSS Library

  1. #1
    Join Date
    Jul 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Underline Horizontal Menu - DD CSS Library

    Hi,

    How can you get the menu to appear centered instead of left. I edited the 'float' attribute but it distorted the menu appearance even though it diplays centrally. Thanks

    Script: http://www.dynamicdrive.com/style/cs...rizontal-menu/

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    the <li> tags won't let you center
    try this

    Code:
    <html>
    <head>
    <style type="text/css">
    #underlinemenu{
    margin: 0;
    padding: 0;
    }
    
    a:link,a:active,a:visited {
    color: gray;
    font-weight: bold;
    padding: 2px 6px 4px 6px;
    text-decoration: none;
    background: white url(media/menudivide.gif) top right repeat-y;
    font:14px tahoma
    }
    
    a:hover{
    color: black;
    background-color: #F3F3F3;
    border-bottom: 4px solid black;
    padding-bottom: 0;
    }
    </style>
    </head>
    <body>
    <div id="underlinemenu" align="center">
    <ul>
    <a href="http://www.dynamicdrive.com" title="Home">Home</a></li>
    <a href="http://www.dynamicdrive.com/style/" title="CSS Library">CSS</a></li>
    <a href="http://www.dynamicdrive.com/new.htm" title="New">New</a></li>
    <a href="http://www.dynamicdrive.com/revised.htm" title="Revised">Revised</a></li>
    <a href="http://tools.dynamicdrive.com" title="Tools">Tools</a></li>	
    <a href="http://www.dynamicdrive.com/forums/" title="DHTML Forums">Forums</a></li>
    </ul>
    </div>
    </body>
    </html>
    - Mike

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
  •