> >> I have a row of 5 <DIV> elements that have the "float: left" attribute
> >> as I wanted them on the same row.
>
> > Wrap them in another div of a fixed width set with ems.
>
> FYI, ems are not a one-size-fits-all unit.
So use Inch, inch is a one-size-fits-all unit. On normal screens
an inch is the same or a little bigger than one inch. It depends
on your configuration. On a cellurar phone or a pda, an inch is
not an inch, but something that looks like an inch (considering
that you are holding the device closer to your eyes, and con-
sidering that the letters has to be at least 8-9 pixels height). It
would be different from device to device. But the idea isn't mine.
Teoretical the graphical would match the letters, but that would
never happen.
> It wouldn't be the best unit to use unless the content were all text,
> and it's debatable even then. % units would allow the widths to scale to
> the window size, and px should be used for graphical content.
How come? Isn't that defined in css? I would think that 100% is 100%
of the containing element. So how would that differ?
> The best unit to use depends on the specific content and the overall
> design/layout.
I think most can agree with that.
> If the OP posted a URL it would be easier to make a suggestion for his
> particular case.
If the OP postet an URL, we all could use ower effort to criticise the
content.
That would be nice.
>>> I have a row of 5 <DIV> elements that have the "float: left" attribute
>>> as I wanted them on the same row.
>>>
>> Wrap them in another div of a fixed width set with ems.
>
> FYI, ems are not a one-size-fits-all unit.
The OP mentioned changing the text size and having the layout degrade. I
assumed he has text in the divs making ems an appropriate unit to recommend.

Signature
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Bergamot - 28 May 2008 23:00 GMT
>>>> I have a row of 5 <DIV> elements that have the "float: left" attribute
>>>> as I wanted them on the same row.
[quoted text clipped - 5 lines]
> The OP mentioned changing the text size and having the layout degrade. I
> assumed he has text in the divs making ems an appropriate unit to recommend.
I guess I missed that part, but it doesn't change the fact that a fixed
width in ems may not be the best thing to do. It depends on the content.
There's another thread in here someplace about a layout with a fixed
width of 60ems. Bad, bad idea, except for people using small default
font sizes.

Signature
Berg