Obviously I can open display and it will tell me exactly where these are listed, but where do the fields with no arrow (in this case height and width) come from? afaik these values are not listed anywhere in my css. Is this clientWidth and clientHeight?
The default value of width
for a block element like a div
or a p
is auto
in CSS 2.1 (nope, it isn't 100%)
Thus what you see is (veeeery roughly speaking) the width of the parent (taking into account borders, padding, margin, box-sizing
and so on).
There are many other cases explained in CSS 2.1 REC Visual formatting model details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With