HTML :td (OT)
Fairlight
fairlite at fairlite.com
Thu Aug 21 15:57:09 PDT 2008
Top-Posted...
Tyler, that was an awesome post. Great information, even after using CSS
for years. I tend to use only px.
I'm curious why you put px into the relative category though. I consider
px an absolute measurement. Now if it were 'pt'...I could see relative.
Still, great knowledge imparted there. Good job!
mark->
This public service announcement was brought to you by Tyler:
> Just for the record: width can be specified in either absolute terms
> (ie, exact measures) or relative terms (eg, the width of an "M" for
> whatever font of whatever size is being used for display)
>
> absolute units - in, cm, mm, pt, pc
> relative units - em (width), ex (height), px
> percentage - relative to parent's width
>
> If you specify a width as being 20em, it won't matter WHAT font size
> or type the user may have overriden your style with, the element's
> width will still scale to twenty maximum-width characters.
>
> For this reason, web design should always attempt to use relative
> units as opposed to absolute for layout. If your navigation column is
> always 30em wide and your content column is fluid (or, preferably, has
> a min-width or spacer in it to guarantee a minimum width), then you
> never need worry about the browser font size and style settings; it
> just scales automatically.
>
> Tyler
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
--
"Moral cowardice will surely be written as the cause on the death
certificate of what used to be Western Civilization." --James P. Hogan
More information about the Filepro-list
mailing list