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?

#137629
djowinz
Member

@CrocoDillon EM is relative to the font-size of the website, in extensive applications or large sites with lots of data its best to stray away from using EM’s. The document relative height will change according to the page being loaded therefore everything would carry an inconsistent feel. Sure you could avoid away from this early in the beginning but then every other person supporting must use the same mindset as you and if you haven’t already figured this out, very rarely do people do anything just like you would. Stick with media queries and % for fluid layouts.