Jump to content

[SOLVED] What positioning?


TheFilmGod

Recommended Posts

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!  ???

Link to comment
https://forums.phpfreaks.com/topic/56387-solved-what-positioning/
Share on other sites

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.