TheFilmGod Posted June 20, 2007 Share Posted June 20, 2007 What positioning do I use? Which is the best: static, float, absolute? I'm starting to understand the difference between them. But let us say I need one that doesn't need to be fluid. But stays the same, minimal overlapping if any and works well in a lot of browsers? Which one do I use? HELP! ??? Quote Link to comment https://forums.phpfreaks.com/topic/56387-solved-what-positioning/ Share on other sites More sharing options...
calabiyau Posted June 20, 2007 Share Posted June 20, 2007 Floats are best I think...absolutely positioning is the worst for your overall layout as it takes the element out of the flow of the page...so if you absolutely position something, elements that are supposed to come after it won't, they'll come after the previous element that wasn't absolutely positioned. Best to just let your major sections flow down the page without any positioning and use floats when necessary for column effects. Just don't forget to clear your floated columns. Quote Link to comment https://forums.phpfreaks.com/topic/56387-solved-what-positioning/#findComment-278541 Share on other sites More sharing options...
ToonMariner Posted June 20, 2007 Share Posted June 20, 2007 errrr..... absolute positioning is fine if you keep a lid on things. float left or right also takes that element out of the flow of the document. The difference is that floats will still occupy some space as would any element positioned relatively. fixed and absolutely positioned elements don't occupy any space. plenty of starting points here to get to grips with this... http://www.google.co.uk/search?q=%20css+positioning+tutorial Quote Link to comment https://forums.phpfreaks.com/topic/56387-solved-what-positioning/#findComment-278737 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.