Change cursor for page and div - HTML CSS CSS Property

HTML CSS examples for CSS Property:cursor

Description

Change cursor for page and div

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
body {<!--  w w w  .j a  va2s .c o  m-->
   cursor:crosshair;
}

#something {
   width:51vw;
   height:301px;
   background-color:Chartreuse;
   cursor:pointer;
}

#else {
   width:51vw;
   height:301px;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <div id="something"></div> 
  <div id="else"> 
  </div>  
 </body>
</html>

Related Tutorials