dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Menu Question

  1. #1
    Join Date
    Apr 2005
    Location
    Behind my DiGiCo SD7 Console
    Posts
    900

    Menu Question

    Hi I am testing out a new menu located at
    http://djshawnmichaels.com/testmenu/

    Please notice the extra space on the far right end, is there a way go make that flush with the page?

    Here is the CSS Code:
    HTML Code:
    #chromemenu{
    width: 768px;
    }
    
    #chromemenu:after{ /*Add margin between menu and rest of content in Firefox*/
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
    }
    
    #chromemenu ul{
    border: 1px solid #BBB;
    width: 100%;
    background: url(chromebg.gif) center center repeat-x; /*Theme Change here*/
    margin-left: 0;
    padding-left: 0;
    margin: 0;
    float: left;
    font: bold 12px Verdana;
    }
    
    
    #chromemenu ul li{
    display: inline;
    }
    
    
    #chromemenu ul li a{
    float: left;
    color: #7F7F7F;
    font-weight: bold;
    padding: 6px 12px 6px 13px;
    text-decoration: none;
    background: url(divider.gif) center right no-repeat; /*Theme Change here*/
    }
    
    #chromemenu ul li a:hover{
    color: #494949;
    }
    
    #chromemenu ul li a[onMouseover]:after{ /*HTML to indicate drop down link*/
    content: " v";
    /*content: " " url(downimage.gif); /*uncomment this line to use an image instead*/
    }
    
    /* ######### Style for Drop Down Menu ######### */
    
    .dropmenudiv{
    position:absolute;
    top: 0;
    border: 1px solid #BBB; /*Theme Change here*/
    border-bottom-width: 0;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    background-color: white;
    width: 200px;
    visibility: hidden;
    filter: progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); /*Add Shadow in IE. Remove if desired*/
    }
    
    .dropmenudiv a{
    width: 100%;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid #BBB; /*Theme Change here*/
    padding: 2px 0;
    text-decoration: none;
    font-weight: bold;
    color: black;
    }
    
    .dropmenudiv a:hover{ /*Theme Change here*/
    background-color: #F0F0F0;
    }

  2. #2
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    Try adding margin-right: 0 and padding-right: 0 to #chromemenu ul.
    KDLA

  3. #3
    Join Date
    Apr 2005
    Location
    Behind my DiGiCo SD7 Console
    Posts
    900
    That didn't sem to work

  4. #4
    Join Date
    Jun 2004
    Location
    los angeles
    Posts
    324
    Try deminishing the padding on the right and left sides..

    #chromemenu ul li a{
    float: left;
    color: #7F7F7F;
    font-weight: bold;
    padding: 6px 11px 6px 12px;
    text-decoration: none;
    background: url(divider.gif) center right no-repeat; /*Theme Change here*/
    }

  5. #5
    Join Date
    Apr 2005
    Location
    Behind my DiGiCo SD7 Console
    Posts
    900
    Do you mean by diminishing = taking out? If so I did that and it just moved everything to the left.

  6. #6
    Join Date
    Jan 2005
    Location
    Frankfort, KY, USA
    Posts
    6,167
    I think he/she meant the opposite: add some more horizontal padding to each element so the entire menu will stretch to 100%;

  7. #7
    Join Date
    Apr 2005
    Location
    Behind my DiGiCo SD7 Console
    Posts
    900
    I added more padding, if I add 14 I think the menu will turn into a 2 liner, but what I did is add some   to the text for the menu and that lenghened it, but not how I want it, there is still a little gap

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles