'left' Example : left « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- left
'left' Example
<html>
<body>
<p id="myP" style="background-color:black; color:white; width:200;">
This is some sample text.
</p>
<button onclick="alert(myP.getBoundingClientRect().left);">Left</button>
</body>
</html>
Related examples in the same category