Information
This one changes the border-right:color to produce a bar on hover.
Cascading Style Sheet
#menu a, #menu a:visited {
text-decoration:none;
text-align:center;
background-color:#aaa;
color:#fff;
display:block;
width:8em;
padding:0.2em;
margin:0.5em auto;
border-right:5px solid #fff;
}
#menu a:hover {
border-right:5px solid #000;
}
xhtml
<div id="menu"> <a href="#nogo">Item 1</a> <a href="#nogo">Item 2</a> <a href="#nogo">Item 3</a> <a href="#nogo">Item 4</a> <a href="#nogo">Item 5</a> </div>
Copyright
You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.
Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.
If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.
Recommended Sites
- Complete travelguide to Phuket
- UK Game Server Hosting
- Free layouts and more - Myspace
- The Hotfix forum for windows
- Web design in Dorset
Bournmouth based web design agency - Host Color
Web Hosting for 30 Websites - web hosting, dedicated servers
web reseller, managed servers - Software Downloads, Dhtml Scripts Dynamic Html, Software Downloads
- pay as you go e-commerce
Build your own SEO friendly webshop







