Skip to main content

9 docs tagged with "box model"

View all tags

Display block

Learn the behavior of block-level elements in CSS, including how they occupy full width, stack vertically, and fully respect all Box Model properties.

The border Property

Learn how the CSS border property defines the style, width, and color of the line separating an element's padding and margin.

The box-shadow Property

Learn how the CSS box-shadow property adds visual depth and dimension to elements, enhancing UI design without affecting the document layout.

The height Property

Explore the CSS height property, how it defines the vertical size of an element's content box, and how to use min-height and max-height effectively.

The margin Property

Learn how the CSS margin property controls the space outside an element's border, separating it from surrounding elements, and how margin collapse works.

The Normal Document Flow

A comprehensive summary of the Normal Document Flow (or Display Flow) in CSS, detailing how block and inline elements interact and set the foundation for all modern layouts.

The outline Property

Learn about the CSS outline property, which draws a line outside the border of an element, often used for accessibility and visual focus indication.

The padding Property

Learn how the CSS padding property controls the inner space between an element's content and its border, and how it affects the element's background.

The width Property

Explore the CSS width property, how it defines the size of an element's content box, and the importance of min-width and max-width for responsive design.