I want to create a rollover button like this [duplicate]
Possible Duplicate:
How to make hover buttons ?
I want to create开发者_如何学JAVA a rollover buttons like this :
http://www.infolinks.com/login.html
"Login" button.So how do i do that ?
I have the 2 roll over buttons ready for use !
Here is a tutorial:
- http://www.elated.com/articles/css-rollover-buttons/
Google is your best friend ...
Add in your CSS a entry for your button-class:
.button{
background-image: url(url/to/normal/button.jpg);
}
.button:hover{
background-image: url(url/to/hovered/button.jpg);
}
<a class="button" ... >
DIY guide:
- Use Firefox.
- Install Firebug.
- Right click on example button and inspect. See HTML part.
- Move mouse over and out of button and observe changes in CSS.
Note: This can be done with other browsers too, but I like Firefox + Firebug.
精彩评论