Hi I just want to share this. I am using sprite images and when I hover it just use the bottom part of the image. This is very handy to speed up your website or blog.
Wordpress css hover
9
Hi
I just want to share this. I am using sprite images and when I hover it just use the bottom part of the image. This is very handy to speed up your website or blog.
CSS:
#ID {
width: 136px; //SIZE OF THE ONE PART OF THE IMAGE
height: 48px;
background-image: url("THE-IMAGE");
background-position: top; //TOP PART OF IMAGE
display: block; //MAKE THE IMAGE A LINK
}
#ID:hover {
background-position: bottom; //BOTTOM PART OF THE IMAGE
}
HTML:
<a id='ID' href="http://LINK"> </a>
Nice day for all of you
I just want to share this. I am using sprite images and when I hover it just use the bottom part of the image. This is very handy to speed up your website or blog.
CSS:
#ID {
width: 136px; //SIZE OF THE ONE PART OF THE IMAGE
height: 48px;
background-image: url("THE-IMAGE");
background-position: top; //TOP PART OF IMAGE
display: block; //MAKE THE IMAGE A LINK
}
#ID:hover {
background-position: bottom; //BOTTOM PART OF THE IMAGE
}
HTML:
<a id='ID' href="http://LINK"> </a>
Nice day for all of you
- jaasmit
- [1] reply
- Jdunhin
- JohnnyS
- Jdunhin
- TimeTravelAgent
- [ 1 ] Thanks
- anconsoft
- [ 1 ] Thanks
- wordpressmania
Next Topics on Trending Feed
-
9