liveBook · Manning

Display property

The CSS property that specifies how an element generates boxes and participates in layout.

How 2 Manning books explain it

Tiny CSS Projects

The CSS display property specifies the layout behavior and box type generated for an element.

How it is used
Uses display to change box behavior and turn parents into containers for practical page and component layouts.
How deep it goes
Explains block versus inline behavior and applies grid and flex values with alignment and spacing; it does not develop a full property reference.
Examples
Shows a full-width newspaper date, a centered profile card, and a checkout layout that places sections side by side on wide screens.
What you can do after
Build it from scratch by choosing block, grid, or flex for a layout and positioning the affected children.

Read how Tiny CSS Projects explains display property →

Web Design Playground, Second Edition

The CSS display property specifies how an element participates in layout and whether it generates a box.

How it is used
Controls whether elements behave as blocks, inline blocks, or grid containers during layout.
How deep it goes
Defines three practical display uses through examples but does not detail the full display value set.
Examples
Uses element sizing and a padded horizontal navigation menu to demonstrate display behavior.
What you can do after
Apply display: block, display: inline-block, or display: grid to change an element's layout behavior.

Read how Web Design Playground, Second Edition explains display property →

Also covered in

What to know first

Related concepts

Questions about display property

What is display property?

The CSS property that specifies how an element generates boxes and participates in layout.

Which Manning books explain display property?

Tiny CSS Projects and Web Design Playground, Second Edition.

What should I know before learning display property?

Manning books that teach display property usually introduce viewport, CSS and div first.

What is the difference between display property and animation type?

The CSS property that specifies how an element generates boxes and participates in layout. An animation type is a CSS specification classification describing whether a property's values can be interpolated and how they change during animation.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.