dms Posted March 29, 2009 Report Posted March 29, 2009 I have a navigation bar with vertical separators and would like to remove or override the... (right-border) on the link farthest to the right. I can't seem to get a grip on this? Email Free Quote Portfolio Welcome #navcontainer { margin: 0px auto; padding: 5px 0px 28px 0px; background-color: #009; width: 750px; } #navlist li { display: inline; list-style: none; } #navlist li a { padding: 0.4em 1em; background-color: #009; color: #FFF; text-decoration: none; float: right; border-right: 1px solid #FFF; } #navlist li a:hover { background-color:#FFF; color: #900; font-weight: bold; } #navlist li.first { border-right: 0; }
newseed Posted March 29, 2009 Report Posted March 29, 2009 (edited) #navlist li a { padding: 0.4em 1em; background-color: #009; color: #FFF; text-decoration: none; float: right; border-right: 1px solid #FFF; } Edited March 29, 2009 by newseed
jlhaslip Posted March 29, 2009 Report Posted March 29, 2009 Add a class to the last link and use CSS for that class to override the border. > </pre> <li>Welcome</li> <br><br><br>#navlist li a.last {<br>border-right: 0px solid #FFF
dms Posted March 29, 2009 Author Report Posted March 29, 2009 (edited) jlhaslip, That worked! I think I tried everything but that. ? Thanks Edited March 29, 2009 by dms
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now