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


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

 

'posLeft' Example



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

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» posLeft