A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/properties/cursor below:

cursor · WebPlatform Docs

cursor Summary

The cursor CSS property specifies the mouse cursor displayed when the mouse pointer is over an element.

Overview table
Initial value
auto
Applies to
all elements
Inherited
Yes
Media
visual
Computed value
as specified (if a keyword), URLs are converted to absolute
Animatable
No
CSS Object Model Property
cursor
Percentages
N/A
Syntax Values
standard values
There are many standard cursors available:

These have varying support across different browsers — see the support section. The examples below feature different boxes with different cursor values set on them, so you can get an idea of what the different ones look like.

url(), keyword
Instead of specifying a standard pointer type, you can specify a url() function pointing to a custom graphic to use as a cursor, which must be followed by a fallback keyword to use as a pointer if the image is not available (this can be auto or a standard keyword value). For example, cursor: url(), auto;

You can supply multiple url() functions separated by commas (url(), url(), auto for example), and the browser will use the earliest appropriate image it can find. Limitations include:

url() hotspot-x hotspot-y, keyword;
CSS3 allows you to specify a custom cusor image along with an X and Y number values for the pointer hotspot, for example cursor: url(cursor2.png) 2 2, auto;. If not specified, the hotspot position defaults to the top left corner of the cursor image, or may be read from the meta data inside the image file, in the case of CUR and XBM format files.
Examples

To make the cursor appear like it’s busy

.busy  {
    cursor: wait;
}

View live example

See also Related articles Visual Effects Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4