By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,724 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,724 IT Pros & Developers. It's quick & easy.

Absolute Positioning / Relative Positioning

P: 1
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
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 7,435
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.