change the cursor to a pointer for an element

i find this class quite useful if you are adding a javascript click event to an element, and need the mouse to look like its a click item rather than just a normal item.

If you mouse over the test element you can see that it shows a different mouse cursor, showing the element is clickable (even if its not).

HTML

<div class='test-element cursor-pointer'></div>

CSS

.cursor-pointer {
  cursor:pointer;
}

.test-element {
  height:100px;
  width:100px;
  background:#999;
}

Other Items in css
Related Search Terms
Page Views

This page has been viewed 29 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

âĪðŸ‘Đ‍ðŸ’ŧðŸ•đ

Random Quote
You drown not by falling in the river, but by staying submerged.
Unknown