Last updated 2 years ago
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ ⟩ .scrollBox
( , ) = . +
Element+boxes
.paddingBox:/ = content + padding
.scrollBox :/ = content + padding + overflow
if no overflow, they are the same.
( , ) will round to integer.
use , if fractional value is needed.
box models
element .paddingBox
document document size
viewport size.
CSS overflow
Element ⟩
Window ⟩
JS.info ⟩ Element size and scrolling ⟩
,
, , , ,
., .