> If em is the best method to set up CSS

for layout, it's not

> then how can I add up the width to remain fluid like %?

You can't. EM width layouts are fixed width. They have been dubbed
"elastic" because they resize whenever the text is resized, meaning
that they "zoom in and out" depending on the user's text size.

This isn't very practical on its own, since enlarging the text means
the layout could get wider than the viewport. The best way to serve an
EM layout is to give it a max-width. For example, if my layout is:

#container { width:30em; max-width:100%; }

Then the width will be 30em, and resize with the text, and will not
flow past the edges of the viewport... which is great.

Of course, you then have to serve Javascript/Expressions to IE to make
sure that the 100% works. There are many ways to do this, if you are
interested.

Right now I think the site is fine at a % width layout. % layouts are
the most accessible, and since the site is not text-heavy, the long
line lengths are okay. Elastic EM width layouts are "fun" and "cool,"
but considering that few users ever resize their text (as in nobody),
most visitors would never even notice the difference. At least with a
% layout it will fit nicely to their screen without any extra work on
your part.

--
--
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to