|
Posted by Jonathan N. Little on 02/06/07 15:22
mrcakey (The Eclectic Electric) wrote:
> How strongly would you counsel against building a page using CSS position?
>
> The main problem I'm having is that when I'm changing the dimensions of
> things, I sometimes have a lot of other things to change in consequence,
> which somewhat negates one of the advantages of using CSS, but it does mean
> I get exactly what I want where I want it.
>
> Has anyone else had experience of doing this and if so, how did you get on?
>
Short answer is depends on how and what you are positioning your
elements. If your are positioning and sizing elements in 'px' if the
font size changes your layout can break badly. Rule of thumb is use px
only when sizing containers for images that are dimensioned statically
in pixels but where text is involved or window size use proportional
units with respect to associated element. For example, a menu or an
sidebar block scale in em's so as the font size scales so does your
block. If you are working with columns percentages may be the best choice.
Lastly, if you find your are using absolute positioning all over the
place, then chances are your are over-managing your design. Time to stop
and reevaluate what you are doing...
My $.02
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|