Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Responsive Web Design: When to use px vs. % on margins and padding? Re: Responsive Web Design: When to use px vs. % on margins and padding?

#137630
CrocoDillon
Participant

I was referring to the Pen of the previous comment, where he mentions padding and margin related to font-size. That’s what ems are for, px is not related to font-size.

Sure in a team you have to be consistent with existing conventions, but working alone you have the luxury of always using best practices and I think you should.