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
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.