Cascading Style StumblerDiscussion
Absolute, relative, floats...for layout?


nikolavejinNov 13, 2007 8:02am
Well don't kill me, I know CSS very well and I know this is not a question you can always give a precise answer, but I just wanna ask you about what is often the first choice you will go for, and I need this to see if my habits are good. So what layout-creating positioning technique do you use most often: absolute positioning, floats, relative...what is your biggest habit here. I use absolute for creating layouts almost 90% a time, and I don't use it only if I really can't, and it does really good for me. And you?


Sponsor
toontjeNov 13, 2007 9:03am
Hi nikolavejin,

I prefer floats. Not in the last place that it is better suited when designing as fluid as possible.


gcalcinesNov 14, 2007 9:29am
The same for me I rather floats.

webtopsources.com [webtopsources.com]


PhoenixNoxNov 15, 2007 5:26pm
Doesn't really matter; unless you want to have a footer (or similar) on a fluid height site, a fluid height header or a completely fluid site, then your only choice is probably to use floats.
Basically if you want the site to have the ability to move columns above/below each other when required or have fluid horizontal layers, then absolute positioning is a no-go.
Redundancy FTW!

I don't really care, unless it's table soup that's just jucky.


Staff
georgeNov 16, 2007 9:22am
Float is my first choice. It usually provides more flexibility with variable screen width and browsers.

g


Absolute, relative, floats...for layout?

You need to Sign-up for StumbleUpon to post to this forum