Go Back   Technology Forums > Computer Forums > HTML and CSS

Share your knowledge and questions, related to HTML and CSS in this forum.


CSS Cursor Styles


Reply
 
LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 02-24-2007, 02:18 AM
Administrator
 
Join Date: Dec 2006
Posts: 304
shri has disabled reputation
Default CSS Cursor Styles

Using the CSS cursor property, a designer can change the style of the mouse cursor that is displayed on either a page or sections of a page or an individual element of the page.

Valid cusor styles include:

Quote:
auto
The UA determines the cursor to display based on the current context.

crosshair
A simple crosshair (e.g., short line segments resembling a "+" sign).

default
The platform-dependent default cursor. Often rendered as an arrow.

pointer
The cursor is a pointer that indicates a link.

move
Indicates something is to be moved.

e-resize, ne-resize, nw-resize, n-resize, se-resize, sw-resize, s-resize, w-resize
Indicate that some edge is to be moved. For example, the 'se-resize' cursor is used when the movement starts from the south-east corner of the box.

text
Indicates text that may be selected. Often rendered as an I-beam.

wait
Indicates that the program is busy and the user should wait. Often rendered as a watch or hourglass. progressA progress indicator. The program is performing some processing, but is different from 'wait' in that the user may still interact with the program. Often rendered as a spinning beach ball, or an arrow with a watch or hourglass.

help
Help is available for the object under the cursor. Often rendered as a question mark or a balloon.
In addition to the standard cursor styles, a designer can also request that the browser display custom cursors that are stored online.

Setting the cursor property as follows:

Quote:
:link,:visited { cursor: url(example.png#linkcursor), url(hyper.cur), pointer }
Will lead to the browser requesting example.png if it supports png cursors or hyper.cur if it does not and finally falling back to the default pointer cursor.
Reply With Quote
Reply





Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox to MS Word Styles cesarcesar HTML and CSS 0 08-12-2007 10:02 PM



Advanced Search

All times are GMT -6. The time now is 07:27 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.