+ 5
CLIENT WIDTH: The clientWidth property returns the viewable width of an element in pixels, including padding, but not the border, scrollbar or margin. The reason why the "viewable" word is specified, is because if the element's content is wider than the actual width of the element, this property will only return the width that is visible. more info: https://www.w3schools.com/JSREF/prop_element_clientwidth.asp SCROLL WIDTH: The scrollWidth property returns the entire width of an element in pixels, including padding, but not the border, scrollbar or margin. Tip: Use the scrollHeight property to return the entire height of an element. The scrollWidth and scrollHeight properties return the entire height and width of an element, including the height and width that is not viewable (because of overflow). Tip: To add scrollbars to an element, use the CSS overflow property. This property is read-oly. more info: https://www.w3schools.com/jsref/prop_element_scrollwidth.asp
18th Sep 2020, 10:21 PM
Galaxy-Coding (inactive)
Galaxy-Coding (inactive) - avatar