Results 1 to 6 of 6

Thread: CSS Horizontal hover menu TABLE ERROR

  1. #1
    Join Date
    Jul 2006
    Location
    San Diego
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation CSS Horizontal hover menu TABLE ERROR

    I am more confused than a Termite in a YOYO !

    Default settings for the CSS Horizontal hover menu result in a BLUE TABLE expanding the entire screen width and a 50 pixel table height, despite default settings of a 20 pixel height.

    I am not sure how to change settings for the BLUE TABLE which is larger than needed.

    I have learned ALOT on the DD forum and am trying to get out of the YOYO !

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

    Default

    You need to include a link to the DD script
    - Mike

  3. #3
    Join Date
    Jul 2006
    Location
    San Diego
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default link

    http://www.dynamicdrive.com/dynamicindex1/hover.htm

    I think the opening DIV tag is missing Border elements

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

    Default

    ...CSS Horizontal hover menu result in a BLUE TABLE
    What is a BLUE TABLE? Do you literally mean the a table, which is blue?
    - Mike

  5. #5
    Join Date
    Jul 2006
    Location
    San Diego
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Blue Table

    Sorry for not being more clear - I need the CSS to be a width 800px by height 20px

    The DIV tag in the CSS table appears BLUE in Dreamweaver while editing the code. Tables bellow the CSS are thrown off.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head><style type="text/css">

    .hovermenu ul{
    font: bold 11px arial;
    padding-left: 0;
    margin-left: 0;
    height: 20px;
    }

    .hovermenu ul li{
    list-style: none;
    display: inline;
    }

    .hovermenu ul li a{
    padding: 0px 0.5em;
    text-decoration: none;
    float: left;
    color: black;
    background-color: #FFF2BF;
    border: 2px solid #FFF2BF;
    }

    .hovermenu ul li a:hover{
    background-color: #FFE271;
    border-style: outset;
    }

    html>body .hovermenu ul li a:active{ /* Apply mousedown effect only to NON IE browsers */
    border-style: inset;
    }
    </style>

    <body>
    <tr>
    <th width="800" height="20" scope="row"><div class="hovermenu">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
    <li><a href="http://www.javascriptkit.com">JavaScript Kit</a></li>
    <li><a href="http://www.codingforums.com">Coding Forums</a></li>
    <li><a href="http://www.cssdrive.com">CSS Drive</a></li>
    <li><a href="http://www.google.com">Google</a></li>
    </ul>
    </div>&nbsp;</th>
    </tr>
    </table>
    </body>
    </html>
    Last edited by capt_cabo; 08-13-2006 at 05:39 PM.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head><style type="text/css">
    .hovermenu {
    height:18px;
    }
    .hovermenu ul{
    font: bold 11px arial;
    padding: 0;
    margin: 0;
    height: 20px!important;
    height:16px;
    }
    
    .hovermenu ul li{
    list-style: none;
    display: inline;
    }
    
    .hovermenu ul li a{
    padding: 0px 0.5em;
    text-decoration: none;
    float: left;
    color: black;
    background-color: #FFF2BF;
    border: 2px solid #FFF2BF;
    }
    
    .hovermenu ul li a:hover{
    background-color: #FFE271;
    border-style: outset;
    }
    
    html>body .hovermenu ul li a:active{ /* Apply mousedown effect only to NON IE browsers */
    border-style: inset;
    }
    </style>
    
    <body>
    <table>
    <tr>
    <th width="800" height="20" scope="row" style="padding:0;"><div class="hovermenu"">
    <ul>
    <li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
    <li><a href="http://www.javascriptkit.com">JavaScript Kit</a></li>
    <li><a href="http://www.codingforums.com">Coding Forums</a></li>
    <li><a href="http://www.cssdrive.com">CSS Drive</a></li>
    <li><a href="http://www.google.com">Google</a></li>
    </ul>
    </div></th>
    </tr>
    </table>
    </body>
    </html>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •