What a wonderful idea, simple and easy. A great way to reduce HTTP GET's.
How to use it in your application:
- Find/Buy a good icon set (like tango), try to find a transparent one.
- Place a div where the icon would be located and set its onclick event to whatever you want it to do.
- create a css class for the icon:
- Change height, width and (x) and (y) position with the respective values.
- assign the class to your div.
.icon-name {
display: block; height: 32px; width: 32px;
background: transparent url(icon.png) -(x)px -(y)px no-repeat;
cursor: pointer;
}
Pretty easy.
No comments:
Post a Comment