How display: contents; Works

Ire Aderinokun / filed under HTML & CSS

As I frequently mention, every element in the document tree is a rectangular box. Broadly speaking, this “rectangular box” consists of two sections. First we have the actual box, which consists of the border, padding, and margin areas. Second, we have the contents of the box; the content area.

Subscribe to newsletter

Design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Permission