Click here to bookmark this site! Home | Contact | About | Site Map  
 

Quick Menu

Intorducing CSS
CSS - Quick Tutorial
Linking A StyleSheet
CSS Reference
Back Grounds.
Lists
Cursors
Borders
Positioning
Scroll Bars
Layers
Float
Margins
Padding
Fonts
Text
Pseudo Elements

 

Cursors

Microsoft Internet Explorer 4+ and Netscape 6+ supports customized cursors defined with CSS.

Although the cursors will not have the customized look in other browsers it usually doesn't ruin anything. These browsers will simply show the normal arrow-cursor which would be same case as if you refrained from customizing cursors at all.

So unless the page really doesn't work without the customized cursor there shouldn't be technical reasons for choosing not to.

However there might be other reasons for thinking twice before adding custom cursor to your pages. Many users are easily confused or irritated when a site breaks the standard user interface.

I guess the best thing about it is being able to add your own customized cursors to your page!

Google

Web
Eazy HTML

Site Stats

failed to establish a db connectionfailed to establish a db connection

Valid CSS!

Valid XHTML 1.0!

Look Values Look Example
cursor-sample default TEST cursor:default
cursor-sample crosshair TEST cursor:crosshair
cursor-sample hand TEST cursor:hand
cursor-sample pointer TEST cursor:pointer
cursor-sample Cross browser TEST cursor:pointer;cursor:hand
cursor-sample move TEST cursor:move
cursor-sample text TEST cursor:text
cursor-sample wait TEST cursor:wait
cursor-sample help TEST cursor:help
cursor-sample n-resize TEST cursor:n-resize
cursor-sample ne-resize TEST cursor:ne-resize
cursor-sample e-resize TEST cursor:e-resize
cursor-sample se-resize TEST cursor:se-resize
cursor-sample s-resize TEST cursor:s-resize
cursor-sample sw-resize TEST cursor:sw-resize
cursor-sample w-resize TEST cursor:w-resize
cursor-sample nw-resize TEST cursor:nw-resize
cursor-sample progress TEST cursor:progress
cursor-sample not-allowed TEST cursor:not-allowed
cursor-sample no-drop TEST cursor:no-drop
cursor-sample vertical-text TEST cursor:vertical-text
cursor-sample all-scroll TEST cursor:all-scroll
cursor-sample col-resize TEST cursor:col-resize
cursor-sample row-resize TEST cursor:row-resize
cursor-sample cursor:url(uri) TEST cursor:url(uri)

So if you created your own cursors for your web page this is how you would incorporate them into your document.

Here is what you would have in your style sheet

.xlink {cursor: url(images/cursors/cursor.cur);}

And in your document you would have something along the lines of:

<a class="xlink"> ... </a>

And hey presto! There's your new cursor rather than your browsers default cursor!

If you would like to practice modifying cursors you can DOWNLOAD the green cursor here to use.

DEFINEING CURSORS FOR ENTIRE DOCUMENT
This is relativly easy, simply add this code to the BODY styles of your document.

body {
      cursor: url(images/cursors/cursor.cur);
} 

And if your interested in software to create your own icons visit Icon Cool.


Copyright © 2004 - EazyHTML.com