I'm new to web design and am struggling to do something in CSS. I'm trying to put together a navigation bar (i.e. Home, Contact tabs etc). I'm doing this by having a <ul> list in my html and formatting it in CSS to display inline.
I've fixed the width for each element, but I'd then like a blank block to fill the width of the rest of the page and aren't sure how to do it. I've given each list item a class of it's own which I think should make things easier but don't know what to do next.
List within the html...
...and my CSS...
I'm thinking I need to create another block in the CSS beginning like the line below but I'm not sure wat to put in it.
Thanks in advance for any help.
I've fixed the width for each element, but I'd then like a blank block to fill the width of the rest of the page and aren't sure how to do it. I've given each list item a class of it's own which I think should make things easier but don't know what to do next.
List within the html...
Code:
<li class="nm_Home"><a href="#" title="To the home page">Home</a></li>
<li class="nm_About"><a href="#" title="All about me">About</a></li>
<li class="nm_Contact"><a href="#" title="How to get in touch">Contact</a></li>
<li class="nm_Blank"><a href="#"></a></li>
...and my CSS...
Code:
#navigation_Main li a{
display: block;
background: #000;
color: #fff;
padding: 5px;
height: 30px;
width: 75px;
border-right: 1px solid #fff;
font-family: verdana, Arial, san-serif;
font-size: 10pt;
text-decoration: none;
float: left;
vertical-align: middle;
line-height: 20px;
}
I'm thinking I need to create another block in the CSS beginning like the line below but I'm not sure wat to put in it.
Code:
#navigation_Main li.nm_Blank a{}
Thanks in advance for any help.