crop_rotate
Run
<!DOCTYPE html> <html> <head> <title> DOM offsetLeft Property </title> <style> #GFG { height: 50px; width: 200px; padding: 10px; background-color: green; } </style> </head> <body> <h2> DOM Style offsetLeft Property </h2> <div id = "GFG"> <b>Information about this div:</b><br> <p id = "demo"></p> </div><br> <button type = "button" onclick = "myfun()"> Submit </button> <script> function myfun() { var testDiv = document.getElementById("GFG"); document.getElementById("demo").innerHTML = "offsetLeft: "+ testDiv.offsetLeft; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCgk8aGVhZD4NCgkJPHRpdGxlPg0KCQkJRE9NIG9mZnNldExlZnQgUHJvcGVydHkNCgkJPC90aXRsZT4NCgkJDQoJCTxzdHlsZT4NCgkJCSNHRkcgew0KCQkJCWhlaWdodDogNTBweDsNCgkJCQl3aWR0aDogMjAwcHg7DQoJCQkJcGFkZGluZzogMTBweDsNCgkJCQliYWNrZ3JvdW5kLWNvbG9yOiBncmVlbjsNCgkJCX0NCgkJPC9zdHlsZT4NCgk8c3R5bGUgdHlwZT0idGV4dC9jc3MiPiA6Oi13ZWJraXQtc2Nyb2xsYmFye3dpZHRoOjdweDtoZWlnaHQ6N3B4O306Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNre2JhY2tncm91bmQ6I2ZmZjt9Ojotd2Via2l0LXNjcm9sbGJhci10aHVtYntib3JkZXItcmFkaXVzOjVweDtiYWNrZ3JvdW5kOiMyZjQ1ZmY7fTwvc3R5bGU+PC9oZWFkPg0KCQ0KCTxib2R5Pg0KCQk8aDI+DQoJCQlET00gU3R5bGUgb2Zmc2V0TGVmdCBQcm9wZXJ0eQ0KCQk8L2gyPgkNCgkJCQ0KCQk8ZGl2IGlkID0gIkdGRyI+DQoJCQk8Yj5JbmZvcm1hdGlvbiBhYm91dCB0aGlzIGRpdjo8L2I+PGJyPg0KDQoJCQk8cCBpZCA9ICJkZW1vIj48L3A+DQoJCTwvZGl2Pjxicj4NCgkJDQoJCTxidXR0b24gdHlw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