PDA

View Full Version : How to center this tab? Please Help



set888
08-20-2011, 11:12 PM
1) Script Title: SOLID BLOCK MENU

2) Script URL (on DD): http://www.dynamicdrive.com/style/csslibrary/item/solid_block_menu/

3) Describe problem: How do I center the tab. instead of left align?

here is the code:

<style type="text/css">

.solidblockmenu{
margin: 0;
padding: 0;
float: left;
font: bold 13px Arial;
width: 100%;
overflow: hidden;
margin-bottom: 1em;
border: 1px solid #625e00;
border-width: 1px 0;
background: black url(media/blockdefault.gif) center center repeat-x;
}

.solidblockmenu li{
display: inline;
}

.solidblockmenu li a{
float: left;
color: white;
padding: 9px 11px;
text-decoration: none;
border-right: 1px solid white;
}

.solidblockmenu li a:visited{
color: white;
}

.solidblockmenu li a:hover, .solidblockmenu li .current{
color: white;
background: transparent url(media/blockactive.gif) center center repeat-x;
}

</style>