Forum Moderators: not2easy

Message Too Old, No Replies

Tabs not aligning right

Driving me crazy

         

projeto

11:41 pm on Aug 31, 2007 (gmt 0)

10+ Year Member



Hi All,

I am trying to get the orange tabs within the orange bar to be central on the page instead of left aligned, like they are now

CSS:
#tabsI {
text-align: center;
background-image: url(../styleImages/backgrounds/catBg.gif);
background-repeat: repeat-x;
background-position: bottom;
height: 60px;
color: #ffffff;
margin:0px auto;
width: 100%;
}
#tabsI ul {
margin:0 auto;
padding:10px 10px 0 0px;
list-style:none;
text-align:center;
}
#tabsI li {
display: inline;
margin:0;
padding:0;
}
#tabsI a {
float:left;
background:url("../styleImages/backgrounds/tableftI.gif") no-repeat left top;
margin:0;
padding:0 0 0 5px;
text-decoration:none;
}
#tabsI a span {
float:left;
display:block;
background:url("../styleImages/backgrounds/tabrightI.gif") no-repeat right top;
padding:10px 15px 10px 10px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabsI a span {float:none;}
/* End IE5-Mac hack */
#tabsI a:hover span {
color:#FFF;
}
#tabsI a:hover {
background-position:0% -42px;
}
#tabsI a:hover span {
background-position:100% -42px;
}

[edited by: encyclo at 1:50 am (utc) on Sep. 12, 2007]
[edit reason] no URLs thanks [/edit]

fireguy

12:53 am on Sep 1, 2007 (gmt 0)

10+ Year Member



remove the float:lefts & display:blocks