Results 1 to 5 of 5

Thread: Menu HTML Problem

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Menu HTML Problem

    Hey everyone, I am having a problem with the dropdown boxes I want to put in my website. The bottom border line does not display on the last item I want to go to. My code for a box by itself is below. What is causing the gray to appear instead of the line? Also, how do I change the color of the text in the dropdown boxes? Thanks Alot.

    Whitt

    Code:
    <html>
    <head>
    
    <title>Dropdown Sample</title>
    
    <script type="text/javascript" src="dropdown.js">
    </script>
    
    </head>
    <body>
    
    
    
    
    <!-- Electronics Dropdown Menu -->
    
    <div id="menu_parent"
         style="width: 95px; border: 1px solid black; background: #BEBEBE; padding: 0px 5px;
                font-weight: 900; color: #000020;">
    Electronics				
    </div>
    <div id="menu_child"
         style="position: absolute; visibility: hidden; background: #BEBEBE; left:10px; top:56px; width:24px">
    <a style="border-left:1px solid black; border-right:1px solid black; border-top:1px solid black; display: block; width: 120px; text-decoration: none; font-weight: 900; border-bottom: medium none;; padding-left:5px; padding-right:5px; padding-top:0px; padding-bottom:0px" href="/store/electronics/300zx.html">300 ZX</a><font color="#000030">
    </font>
    <a style="border-left:1px solid black; border-right:1px solid black; border-top:1px solid black; display: block; width: 120px; text-decoration: none; font-weight: 900; border-bottom: medium none;; padding-left:5px; padding-right:5px; padding-top:0px; padding-bottom:0px" href="/store/electronics/supra.html">Toyota Supra</a><font color="#000030">
    </font>
    
    </div>
    
    <script type="text/javascript">
    at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
    </script>
    
    <br /><br /><br /><br />
    
    </body>
    </html>
    
    </code>

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.. Right now we have no idea which menu you're referring to,

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    There are many, many menu scripts on this site.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    DOH!
    It was about Dropdown HTML control..

    http://www.dynamicdrive.com/dynamici...owncontrol.htm

    I am sorry for the confusion...

  5. #5
    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

    You have no bottom border specified for that element:

    Code:
    <a style="border-left:1px solid black; border-right:1px solid black; border-top:1px solid black; display: block; width: 120px; text-decoration: none; font-weight: 900; border-bottom: medium none;; padding-left:5px; padding-right:5px; padding-top:0px; padding-bottom:0px" href="/store/electronics/supra.html">Toyota Supra</a>
    Also, you have an extra semicolon, shouldn't hurt anything but, might. Use this:

    Code:
    <a style="border-left:1px solid black; border-right:1px solid black; border-top:1px solid black; display: block; width: 120px; text-decoration: none; font-weight: 900; border-bottom:1px solid black; padding-left:5px; padding-right:5px; padding-top:0px; padding-bottom:0px" href="/store/electronics/supra.html">Toyota Supra</a>
    Or the more concise:

    Code:
    <a style="border:1px solid black; display: block; width: 120px; text-decoration: none; font-weight: 900; padding:0 5px;" href="/store/electronics/supra.html">Toyota Supra</a>
    - 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
  •