I am in the process of creating a CSS tab style thing for my webpage.
I have everything as i wish except that i cannot center the damn thing
in the page. I am hoping someone out there can help. I am sure that
it is a silly mistake but i have been staring at it for so long i am
going stir-crazy!
I have tried 'text-align: center;' in most parts of the CSS and in the
div in the HTML but it does not like it.
This is my CSS:...
#pagetabs { float:left; width:100%; font-family: Verdana, Arial,
Helvetica, sans-serif; font-size:75%; line-height:normal;}
#pagetabs ul { margin:0; padding:0; list-style:none; }
#pagetabs li { float:left;
background:url("../images/misc/tabright.gif") no-repeat right top;
margin: 0 1px 0 1px; padding:0; }
#pagetabs a { display:block; color:#5F68C3; text-decoration: none;
font-weight: bold; background:url("../images/misc/tableft.gif")
no-repeat left top; padding:5px 15px;}
#pagetabs a:hover { color: #FF0000; }
#pagetabs #current {
background-image:url("../images/misc/curtabright.gif"); }
#pagetabs #current a {
background-image:url("../images/misc/curtableft.gif"); }
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#pagetabs a {float:none;}
/* End IE5-Mac hack */
and this is my HTML:...
<div id="pagetabs">
<ul>
<li id="current"><a href="#">Home</a></li>
<li><a href="show_diary.htm" title="Link to the JM Optics show
diary">Show Diary</a></li>
<li><a href="#">Binocular Guide</a></li>
<li><a href="#">Binocular Help</a></li>
<li><a href="#">Site Help</a></li>
</ul>
</div>
I would much appreciate any help anyone can give me.
Cheers
David