Pixel
noun
say it: “PIK-sul” /ˈpɪksəl/
One tiny dot of color on a screen; every picture on a screen is a grid of them. In CSS and HTML, px is a fixed unit of size named after it.
What is a pixel unit in CSS?
A pixel (px) is a fixed unit of size on screen. It is the easiest unit to reason about but doesn't grow with the user's font settings.
.avatar { width: 48px; height: 48px; }
In a sentence
- “The photo is 2400 pixels wide, far wider than the box it shows in.”
Level: Novice · More CSS terms at this level
Updated