This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

489 points
220f1d42b12f558bd5eeb5839509b96a?s=140&d=retro
Submitted by
Rudy Libertini
about 3 years ago

Standard conventions, px or em?

What is the standard in the industry? Use px or em?


0 votes

permalink

They are both standard. It just depends where you are going to use it and also on your preferences.

Here's a link that explain is well:

http://stackoverflow.com/questions/609517/why-em-instead-of-px

2946 points
5533b41186f55278520000c6_295543857
Submitted by
tony de araujo
about 3 years ago


0 votes

permalink

Px and em are both standard, but I would recommend em because it works better over more platforms.

262 points
2dc649665c0dcf59cc6d99da814df575?s=140&d=retro
Submitted by
Isaac
about 3 years ago