# Percentage

*noun*

say it: **“per-SEN-tij”** **/pərˈsɛntɪdʒ/**

A CSS size written with % (read "percent") that is worked out from something else, usually the parent element, so a width of 50% is half the parent's width.

## How do **percentages** work in CSS?

A **percentage** size is worked out from something else, usually the parent element, so the element grows and shrinks with it.

```css
.sidebar { width: 25%; }   /* a quarter of the parent's width */
```

## In a sentence

- “I gave the photo a width of 100%, a **percentage** of its card, so it always fills the card whatever the card's size.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/percentage
