How do I auto align a web page which uses parent / child div relationships? - TechRepublic
Question
March 18, 2009 at 11:53 PM
matthew.gillman

How do I auto align a web page which uses parent / child div relationships?

by matthew.gillman . Updated 17 years, 3 months ago

I hope someone can help me.

The problem that I am having is that when I use non-overlapping standard

tags I am able to auto align the contained content into the center of the page but when I try and insert AP Divs with parent / child relationships the child layers are not auto aligning.

The result of this is that when opened in a browser window the parent layer centers while the child layers remain static in their positions.

I have tried to change the position:absolute; tags to fixed, static, inheret etc but nothing seems to work.

Put simply, I wish to use absolute positioning to create an entire page where various layers overlap with one another and where the entire page and all of its contents auto align to the center of the browser window regardless of ratio and size of the monitor.

Result: “apdiv1” parent layer being auto centered while the “apdiv2” child layer would remain in a fixed position on the browser page.

Please help. Oh, and I’m using Dreamweaver CS4 if that helps?

This discussion is locked

All Comments