paint-brush
The Best CSS Unit For a Responsive Designby@adeshola-adewale
30,502 reads
30,502 reads

The Best CSS Unit For a Responsive Design

by Adeshola Adewale4mFebruary 23rd, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

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

@adeshola-adewale

An Aspring Software Developer

Learn More
LEARN MORE ABOUT @ADESHOLA-ADEWALE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Adeshola Adewale HackerNoon profile picture
Adeshola Adewale@adeshola-adewale
An Aspring Software Developer

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite