![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
style type="text/css" !-- .mouse-hand { cursor: hand; } -- /style In the image tag add the class="mouse-hand" attribute. |
#3
| |||
| |||
|
|
Two problems with this: 1. Stylesheet classes should not use hyphens. Although permitted in CSS syntax, they will cause problems if they ever need to interact with JavaScript, so are best avoided. |

|
2. Cursor: hand is IE exclusive. The correct rule is cursor: pointer. |
|
Unfortunately, not all browsers render this correctly, so the best way is to use both: .mousehand { cursor: pointer; cursor: hand; } Note - they MUST be in that order. For a more detailed explanation, see: http://devedge.netscape.com/viewsource/2002/cursor/ |

#4
| |||
| |||
|
|
2. Cursor: hand is IE exclusive. The correct rule is cursor: pointer. ARGGGHHHH!!! Since I made this example with DMX stylesheet generator, is there a way to make DMX automatically propose me the most compatible CSS? |
![]() |
| Thread Tools | |
| Display Modes | |
| |