Proportion
A ratio expressing a quantity relative to a whole or reference quantity, commonly represented as a fraction, decimal, or percentage.
Math for Web Design
A proportion is a mathematical relationship expressing the relative sizes of quantities or parts.
- How it is used
- Uses relative sizes to make layouts adapt to their containers and to express reading progress.
- How deep it goes
- Works through property-specific percentage references, nested multiplication, box-model effects, and a three-stage fixed-to-liquid conversion.
- Examples
- Calculates nested widths, converts an article-and-aside layout, and scales a hero image to its container.
- What you can do after
- Build it from scratch by converting fixed widths and spacing into percentages within a maximum-width liquid layout.
Web Design Playground, Second Edition
A CSS percentage is a relative numeric value resolved against a context-dependent reference dimension.
- How it is used
- Supports liquid layouts by sizing horizontal measurements relative to available space instead of fixed pixels.
- How deep it goes
- Works through parent-relative width with numbers and gives spacing guidelines, but does not develop percentage-height resolution rules.
- Examples
- Uses an 800-pixel parent with a 75% child width and a responsive CSS listing that mixes percentage padding with rem spacing.
- What you can do after
- Apply it via CSS percentage widths and horizontal spacing, then recognize when cramped columns or surprising spacing call for another approach.
Read how Web Design Playground, Second Edition explains proportion →
Grokking Statistics
The fraction or percentage of a population possessing a specified categorical attribute.
- How it is used
- Measures categorical population attributes and supports confidence intervals and hypothesis tests for proportions.
- How deep it goes
- Defines P and p̂, explains sampling distributions and standard error, and works through confidence intervals without formal derivations.
- Examples
- Uses biking to work, sedentary lifestyles, daily steps, and video-game participation as categorical or percentage examples.
- What you can do after
- Apply proportions via Python and SciPy to calculate sample proportions, sampling probabilities, and confidence intervals.
Everyday Data Visualization
A proportion expressed as a number out of one hundred.
- How it is used
- Uses percentages to normalize comparisons and prevent population size or presentation choices from obscuring the intended insight.
- How deep it goes
- Explains normalization through practical chart examples, while stopping short of mathematical derivations or implementation details.
- Examples
- Uses sales per customer, voter turnout, county vote totals, and currency-versus-percentage reporting.
- What you can do after
- Apply percentages to choose fairer metrics and communicate comparisons without misleading visual emphasis.
Also covered in
- Pandas Workout: 200 exercises to make you a stronger data analyst
- The Quick Python Book, Fourth Edition
- Elixir in Action, Third Edition
- Statistics Slam Dunk
- D3.js in Action, Third Edition
- CSS in Depth, Second Edition
- Data-Oriented Programming in JavaIn early access (MEAP)
- Statistics Every Programmer Needs
- Grokking BayesIn early access (MEAP)
- Julia as a Second Language
- Fast Python: High performance techniques for large datasets
- Data Storytelling with Altair and AI
What to know first
- pixelA pixel is either a discrete image sample carrying visual information at a raster location or, in CSS, an abstract reference unit for rendered dimensions.
- emThe em is a CSS relative length unit whose computed value is based on the applicable font size.
- flexboxFlexbox is a CSS one-dimensional layout model for arranging, sizing, aligning, and distributing items along a row or column.
- meanThe mean is a measure of central location equal to the arithmetic average of numerical observations, or the probability-weighted average of a random variable’s possible values.
Related concepts
- fluid layoutused by · A fluid layout is a layout whose dimensions adapt continuously to available space, commonly using relative rather than fixed measurements.
- containing blockuses · A CSS reference rectangle used to resolve certain descendant properties, including an element's dimensions and position.
- paddingused by · Padding is the provision of extra values, characters, bytes, or space around or within data or an element to meet length, boundary, block-size, spacing, or alignment requirements.
- decimal numeral systemequivalent to · The decimal numeral system is a base-ten positional numeral system that represents values using the digits 0 through 9.
- height propertyuses · A height property specifies or reports an element’s vertical dimension.
Questions about proportion
What is proportion?
A ratio expressing a quantity relative to a whole or reference quantity, commonly represented as a fraction, decimal, or percentage.
Which Manning books explain proportion?
Math for Web Design, Web Design Playground, Second Edition, Grokking Statistics and Everyday Data Visualization.
What should I know before learning proportion?
Manning books that teach proportion usually introduce pixel, em, flexbox and mean first.
What kinds of proportion are there?
Kinds of proportion include synthetic data proportion.
What is proportion also called?
Proportion is also called percentage or percent.
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.



