'position' Example : position : CSS Attributes and Javascript Style Properties HTML CSS TUTORIALS


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » position »

 

'position' Example



    
<head>
<script language="JavaScript">
    function function1(){
        myDiv.style.position = "absolute"
    }
</script>
</head>
<body>
<br>
<br>
<br>
<br>
<br>
<div id="myDiv" 
     style="background-color:#EEEEEE; 
            width:200; 
            cursor:hand" 
     onclick="function1()">
     Click Here to set the position to "absolute".
</div>
</body>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» position