View Full Version : AP Div problem

05-30-2009, 07:58 PM
I have placed an AP Div to the left of my page. It is next to a table and I want them to be the same distance apart no matter what screen size.

The table is centred but the AP Div moves to the left of the screen when I test it. I want the AP Div to be locked into position so it does not move.

How do I do this?


05-30-2009, 08:11 PM
If one element is absolutely positioned, and the other one is relatively positioned (centered) they will never be the same distance from each other when you resize the browser.

05-31-2009, 07:57 PM
You need to wrap a "container" div around both the AP div and the table and then position them using the CSS float, margin, etc. properties. Absolute positioning is the wrong way to go here.

06-01-2009, 09:09 AM
how do i add a container div in?

06-01-2009, 09:58 AM
see different links in my sig , it uses a container or wrapper div