Where styles for width and height are calculated when they are not specified in my CSS

Obviously, I can open the display, and he will tell me exactly where they are listed, but where do the fields without the arrow come from (in this case, height and width)? afaik these values ​​are not specified anywhere in my CSS. Is it clientWidth and clientHeight?

enter image description here

+5
source share
2 answers

The default value widthfor a block element such as divor pis equal autoin CSS 2.1 (no, this is not 100%)

Thus, you see (roughly) the width of the parent (taking into account borders, indents, margins, box-sizingetc.).
There are many other cases described in CSS 2.1 REC Formatting Model Details

+2

, , . , , JavaScript, - . . , , .

-1

All Articles