Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    mjb
    mjb is offline
    New Coder
    Join Date
    May 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    css/ java script menu with tables

    I'm very new to css. Trying to use it with a table layout. The drop down menu doesn't seem to fit the width of the table. Does anyone know how to accomplish this? Here's my webpage Here's the stylesheet for the menu

    Thanks for your time

  • #2
    Regular Coder
    Join Date
    Jan 2009
    Posts
    316
    Thanks
    7
    Thanked 92 Times in 91 Posts
    I have a feeling someone soon will come on and rewrite your code using divs, but for now:

    Your chromestyle.css file has this:
    Code:
    .chromestyle{
    width: 99%;
    font-weight: bold;
    }
    change the width to 100%.

    You'll then be 2 pixels over on the right, so you could remove the border from the chromestyle ul from the sides:
    Code:
    .chromestyle ul{
    border-top: 1px solid #BBB;
    border-bottom: 1px solid #BBB;
    width: 100%;
    background: url(chromebg.gif) center center repeat-x; /*THEME CHANGE HERE*/
    padding: 4px 0;
    margin: 0;
    text-align: left; /*set value to "left", "center", or "right"*/
    }

  • #3
    mjb
    mjb is offline
    New Coder
    Join Date
    May 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you so much.

    My apologies for the poor coding

    God Bless


  •  

    Posting Permissions

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