469,964 Members | 1,717 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

Absolute Positioning / Relative Positioning

I have some experience with CSS. Just enough to be dangerous in fact. :) I had a general question about positioning.

Is it possible create a box that is absolutely positioned on a page, and then place boxes inside of that that are relatively positioned, so that they flow with the page? I am aware absolute is just that - absolute, and I know that relative divs move in relation to the parent div. What pitfalls could arise? Would it be better to position everything relatively and tweak as necessary?

What I am thinking of doing is a bounding box that stays at the same place on a page, but the content inside changes dynamically, but still flows with the rest of the page.

This may be a stupid question, and I am sure I could work out any bugs, but I just wanted another opinion on it, before I implemented it.

Thank you for your time.
Feb 6 '08 #1
1 1320
7,435 Expert 4TB
Yes. The relatively positioned elements will then be placed relative to the first positioned element above it which would be your abs pos one.

You should create such a page and experiment.
Feb 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Ken Kast | last post: by
14 posts views Thread by Harlan Messinger | last post: by
4 posts views Thread by mike eli | last post: by
2 posts views Thread by Rob R. Ainscough | last post: by
1 post views Thread by Fred Nelson | last post: by
6 posts views Thread by Mark | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.