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

No Items Found.

Add Comment
Type in a Nick Name here
 
Page Views

This page has been viewed 512 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
Interesting...

Me