Forum Moderators: not2easy
#menu a {
padding: 0px 5px 0px 20px;
width: 100%;
line-height: 150%;
margin-top: -1px;
border-top: 1px solid #D4EBD4;
border-bottom: 1px solid #D4EBD4;
border-left: 3px solid #FFFFFF;
border-right: 3px solid #FFFFFF;
display: block;
}
<div id="menu">
<a href="#">Page 1</a>
<a href="#">Page 2</a>
<a href="#">Page 3</a>
<a href="#">Page 4</a>
</div>
HTML:
==========
<ul id="menu">
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
<li><a href="#">Page 4</a></li>
</ul>
CSS:
==========
ul#menu {
border-color:#D4EBD4;
border-style:solid;
border-width:1px 1px 0 1px; /* No border on bottom of container... */
}
ul#menu li {
border-bottom:1px solid #D4EBD4;
}
So, to summarize, there are borders on the top, right and left sides of the container element (<ul>), and borders on the bottoms only of the list items (<li>). You could, of course, also do the same thing with the block-level <a> elements that you've tried in your original example - just apply the styles to the <a> elements instead of the <li>.
-B