Hi All,
My question is how do I best use css to center a set of three horizontal links within an 800px wide div?
The links are contained within an unordered list within the 800px wide div named #top-nav
the css is this...
Code:
#top-nav ul li {
display:inline;
list-style:none;
}
with this as the current html...
HTML Code:
<div id="top-nav">
<ul>
<li class="aboutus"><a href="#"> ABOUT US </a></li>
<li class="portfolio"><a href="#"> PORTFOLIO </a></li>
<li class="services"><a href="#"> SERVICES </a></li>
</ul>
</div>
Also, the classes above are only used to call a css background image to replace the text. I have no margins padding or alignment set on the classes aboutus portfolio and services at the moment.
thanks for any help!
(hopefully the solution is a simple one that im overlooking from being tired at the moment.. don't you hate when that happens?)
|