I am trying to create a navigation bar where, when a user clicks on an image, the image remains active. In the following example, the sheet will remain green after clicking. Here is some code I'm talking about:
<a class="myButtonLink" href="#LinkURL">Leaf</a> <style> .myButtonLink { display: block; width: 100px; height: 100px; background: url('http://kyleschaeffer.com/wordpress/wp-content/uploads/2009/01/buttonleafhover.png') bottom; text-indent: -99999px; } .myButtonLink:hover { background-position: 0 0; } </style>
javascript html css
Jack Null Jan 12 '12 at 4:16 2012-01-12 04:16
source share