Whatever the layout requires, but for me it's almost exclusively px, em and % and usually a combination of all three.
As a basic rule:
If I need something fixed, I use px - sidebar columns, headers, graphics etc. Classic example - 760px width container.
If I need something to scale proportionately I use ems e.g. all text, text containers, anything that needs to scale proportionately to text.
% values for either components of fluid layouts where I just want something to roughly span an area e.g. two columns in a container 50% width each, or where something needs to be scaled as a multiple of something else e.g. 200% font-sizing.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.