PDA

View Full Version : AP Div problem


jamiew23
05-30-2009, 08: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?

Thanks

domedia
05-30-2009, 09: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.

DWcourse
05-31-2009, 08: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.

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

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