PDA

View Full Version : Menu Spacing



shawnmichaels
05-17-2006, 07:37 PM
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?


#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;
margin-right: 0;
padding-right: 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 12px;
text-decoration: none;
background: url(divider.gif) center right no-repeat; /*Theme Change here*/
}

#chromemenulast ul li a{
float: left;
color: #7F7F7F;
font-weight: bold;
padding: 6px 12px 6px 12px;
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;
}

shawnmichaels
05-17-2006, 07:38 PM
So you know I have tried tampering with this line: padding: 6px 12px 6px 12px; in the #chromemenu ul li a{ section.

ddadmin
05-18-2006, 07:30 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

What you actually want to do is remove the divider image for the very last menu item. In your HTML, locate the line:


<li><a href="http://www.djshawnmichaels.com/maillist.php" style="background-image: none" >Mailing List&nbsp;</a></li>

That should do it.