H I O X INDIA
FREE CSS Tutorial
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
Español  Français  中文  Deutsch 
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

CSS Topics
Introduction
Types
Background Properties
Text Properties
Font Properties
BOX Properties
Border Properties
Margin Properties
Padding Properties
Special Topics
Ask Your Doubts
More about CSS
Feedback




CSS Cursor Type


Topic

How to make the cursor type as pointer or crosshair using css?
I want to have a different cursor, how can I do that?



Topic

Property: cursor

The cursor for any element can be set by using the css property "cursor".
Example Tag:
<div style="cursor: crosshair;"> this is a pointer type cursor </div>

Result
this is a pointer type cursor


The css property can take many values as described in the below table
ValueResult
pointera hand symbol
crosshair + symbol
movemove symbol
wait loading symbol
help question symbol
text text symbol
e-resizemove east cursor
ne-resizemove north-east cursor
nw-resizemove north-west cursor
n-resizemove north cursor
se-resizemove south-east cursor
sw-resizemove south-west cursor
s-resizemove south cursor
w-resizemove west cursor
default default cursor
url user defined image as cursor

A user defined image can be set as a cursor using css.
The code for it is "cursor: url('./images/cursor.gif');".
But this custom user defined cursor may not work in some versions of the browsers.






A Note
CSS - Cascading Style Sheets can be used along with html tags as explained in this site. This simple CSS will help you to create much elegant and neat html web pages. This does not need any additional softwares or codings. All web browser are capable of handing CSS codes.

Note 2: If required you can using <span> instead of <div> tags. div tag will start and end on new lines. span will not exceed the tag area.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com