liveBook · Manning

Width

Width is a measure of extent along a specified dimension, such as spatial size or the number of units or features in a model.

How 3 Manning books explain it

Web Design Playground, Second Edition

The CSS width property specifies the horizontal size of an element's content box or replaced content.

How it is used
Uses width to make home-page text readable and to begin controlling page layout.
How deep it goes
Explains browser defaults, block-versus-inline behavior, units, percentages, auto, and box-model context; defers layout in earnest.
Examples
Demonstrates a 550px body, a 630px div, and a shortened horizontal rule.
What you can do after
Apply it via CSS to set block widths and tune line length.

Read how Web Design Playground, Second Edition explains width →

Tiny CSS Projects

The CSS width property specifies the horizontal size of an element's box.

How it is used
Uses width to size responsive cards, matching card faces, circular share links, and a collapsible menu.
How deep it goes
Works through viewport, percentage, fixed, and changing widths in UI examples; leaves the share menu’s JavaScript behavior in starter code.
Examples
Shows a profile card, two credit-card faces, 48-pixel share links, a collapsible menu, and SVG loader bars.
What you can do after
Apply it via CSS to size a responsive card and reveal a menu by changing its width.

Read how Tiny CSS Projects explains width →

Web Design Playground

The horizontal extent or measure of an object or layout box.

How it is used
Controls block-level element sizing and supports liquid layouts that adapt across screen sizes.
How deep it goes
Defines browser width defaults, property values, inline exceptions, and percentage calculations without detailing the full box-model sizing rule.
Examples
Uses a 75%-wide child inside 1,000px and 800px article containers, plus a 960px maximum-width body.
What you can do after
Apply it via CSS width and max-width properties to size elements and create percentage-based liquid layouts.

Read how Web Design Playground explains width →

Related concepts

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.