The Best CSS Unit For a Responsive Designby@adeshola-adewale
23,846 reads

The Best CSS Unit For a Responsive Design

tldt arrow
EN
Read on Terminal Reader🖨️

Too Long; Didn't Read

CSS units are very important when creating a responsive website and you might wonder which one to use. In this article, I will show you the most suitable CSS units to use for responsive design. There are two types of CSS Units which are: Absolute Length Unit and Relative Length Unit. Rem, Em, Percentage (%), View-width (vw) and View-height are most commonly used. Rem is an absolute unit relative to the root element of the HTML document and is commonly used for font sizes. The Rem unit is a scalable unit in which the browser renders into pixel values. I recommend it for responsiveness.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - The Best CSS Unit For a Responsive Design
Adeshola Adewale HackerNoon profile picture

@adeshola-adewale

Adeshola Adewale

Learn More
LEARN MORE ABOUT @ADESHOLA-ADEWALE'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa