Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which part of the box model does the outline property belong to?

Tags:

html

css

Which part of the box model does the outline property belong to? Is the outline css property part the margin?

like image 221
Bootstrap4 Avatar asked Nov 21 '25 05:11

Bootstrap4


1 Answers

The outline property is not part of the CSS Box Model.

18.4 Dynamic outlines: the outline property

  • Outlines do not take up any space.

  • The outline created with the outline properties is drawn "over" a box, i.e., the outline is always on top, and does not influence the position or size of the box, or of any other boxes.

  • Since the outline does not affect formatting (i.e., no space is left for it in the box model), it may well overlap other elements on the page.

like image 117
Michael Benjamin Avatar answered Nov 22 '25 18:11

Michael Benjamin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!