CSS Custom Cursors
here's a list of all the different types of cursors that you can use.
This tutorial is guide to using custom mouse pointers and cursors with css. And is geared towards someone who is new to css.
Changing Cursors
Changing the mouse cursor is one of the cool things that css makes possible. Notice how your mouse cursor changes when you move it over CSS. CSS Cursor attribute allows you to set
.help {
cursor: help
}
The help cursor is displayed, when the mouse is over an element with the class help
here's a list of all the different types of cursors that you can use.
- help
- pointer
- crosshair
- n-resize
- nw-resize
- w-resize
- sw-resize
- s-resize
- se-resize
- text
- wait
- default
- e-resize
- ne-resize
- auto
p
{
cursor : url("custom.cur"), pointer
}
Note: The custom images as cursors is only supported in Internet Explorer 6.0, which is why we also included pointer, so if the browser dosent support custom cursors atleast the default pointer will be displayed.
Before you get carried away keep in mind that it is easy to use custom cursors to reduce usability rather than of increasing it. Keep in mind that most people are used to certain cursors doing certain things for example if you are making a button in css, dont use the text cursor use the hand cursor.
When used correctly however custom cursors can greatly the increase usability of a site.
More Tutorials
Tutorio.com. Privacy Policy,
Contact