CSS Layouts: Fixed, Fluid, Elastic
Which Cascading Style Sheet (CSS) layout is best? All have their
quirks and their unique pros and cons. Is one more accessible than the other?
More usable? What are the drawbacks and how are they dealt with? Is one easier
to create than the other? Is there an evil, inaccessible layout? I
suspect some will say yes to this, but I’m not going to. I like them all and
feel all are suitable if steps are taken to ensure easy usability and equal
accessibility. All are part of a web site’s presentational layer, so most
of the accessibility relies on the extractable semantics and proper usage of
the underlying mark-up. What follows is my take on the rigid fixed, the
adaptable fluid, and the expandable elastic layouts.
Fixed
Width Layouts
A
fixed width site is one where the main wrapper is set to a specific immovable
width independent of the user agent’s display resolution. A common and
considerate fixed width is 760 pixels, a size that ensures users with
800×600 resolution monitors have close to full window viewing without annoying
side-scrolling.
Fluid
or Liquid Layouts
A
fluid or liquid layout is created by not specifying a wrapper width at all or
doing so using the percentage unit of measure. In other words, barring
borders and padding screwing things up, a 100% width site will take up the
entire view port width without producing a horizontal scroll bar.
Elastic
Layouts
An
elastic site’s main wrapper and other elements are measured using ems as
the unit of measure. Ems are relative proportionally to the text or font size.
Thus, as the text size is increased, the sections measured in ems will increase
in size as well.
I just started using EM on my website and
ReplyDeleteI LOVE IT!
It is very simple once you got the hang of it.
I Full heartedly recommend this article: http://v1.jontangerine.com/log/2007/09/the-incredible-em-and-elastic-layouts-with-css
It basically teaches you everything to start elastic:)
Feel free to check my site aswell, the Elastic Theme will be up at 26-06-2012:
vanilla-guides.com