I want to make a CSS class so that i can use it like this
So how do I make a class so that
http://www.pixelmill.com/support/support_article.aspx?ParentListID=al1015&articleid=kb101543
There are plenty of tutorials in the web:
Something like this:
<style type="text/css">
.some {
background-color:#0F9;
}
.some:hover {
background-color:#F00;
}
</style>
</head>
<body>
<div class="some"> dsadsad </div>
</body>
The easiest way is to use sprites. You'll need to change the <input>
tags to <a>
tags:
<style>
a.link1 {
display:block;
height:10px;
background:url(image.jpg) no-repeat 0 0;
}
a.link1:hover {
background:url(image.jpg) no-repeat 0 -10px;
}
</style>
<a href="URL1" class="link1">foo</a>
just apply these rules:
.hoverbuttons { ... }
.hoverbuttons:hover { ... }
note: on IE6 and previous :hover
pseudoclass will work only on <a>
elements.