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


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

 

'pixelLeft' Example



    
<html>
<head>
<script language="JavaScript">
    function function1(){
        document.all.myDiv.style.pixelLeft = 500 
    
</script>
</head>
<body>
<div id="myDiv" 
     style="background-color:#ccffcc; 
            position:absolute; 
            width:200;
            cursor:hand"
     onclick="function1()">
     Click on this div element to set pixelLeft to 500.
</div>
</body>
</html>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» pixelLeft