crop_rotate
Run
<!DOCTYPE html> <html> <head> <title> HTML DOM scrollWidth Property </title> <style> #box { width: 250px; overflow: auto; } #content { width: 500px; padding: 10px; background-color: green; color: white; } </style> <!-- script to find width of scroll --> <script> function myfun() { var doc = document.getElementById("content"); var x = doc.scrollWidth; document.getElementById ("p").innerHTML = "Width: " + x + "px"; } </script> </head> <body> <h1>Close Tag</h1> <h2> DOM scrollWidth Property </h2> <button onclick="myfun()"> Click Here! </button> <br><br> <div id = "box"> <div id = "content"> Text content... </div> </div> <p id = "p"></p> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCgk8aGVhZD4NCgkJPHRpdGxlPg0KCQkJSFRNTCBET00gc2Nyb2xsV2lkdGggUHJvcGVydHkNCgkJPC90aXRsZT4NCgkJPHN0eWxlPg0KCQkJI2JveCB7DQoJCQkJd2lkdGg6IDI1MHB4Ow0KCQkJCW92ZXJmbG93OiBhdXRvOw0KCQkJfQ0KCQkJDQoJCQkjY29udGVudCB7DQoJCQkJd2lkdGg6IDUwMHB4Ow0KCQkJCXBhZGRpbmc6IDEwcHg7DQoJCQkJYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47DQoJCQkJY29sb3I6IHdoaXRlOw0KCQkJfQ0KCQk8L3N0eWxlPg0KCQkNCgkJPCEtLSBzY3JpcHQgdG8gZmluZCB3aWR0aCBvZiBzY3JvbGwgLS0+DQoJCTxzY3JpcHQ+DQoJCQlmdW5jdGlvbiBteWZ1bigpIHsNCgkJCQl2YXIgZG9jID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImNvbnRlbnQiKTsNCgkJCQl2YXIgeCA9IGRvYy5zY3JvbGxXaWR0aDsNCgkJCQlkb2N1bWVudC5nZXRFbGVtZW50QnlJZCAoInAiKS5pbm5lckhUTUwNCgkJCQkJCT0gIldpZHRoOiAiICsgeCArICJweCI7DQoJCQl9DQoJCTwvc2NyaXB0Pg0KCTxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+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