Forum Moderators: not2easy
When i absolute position the ap divs in dreamweaver it looks great and also in the browser, but if i change the size of the page in the browser the alignment changes for the ap divs, so they seem to move around depending on the size of the page. I therefore figured out that I need to use static ap divs and use the margins elements to place the ap divs. On testing it worked fine.
HERE'S THE PROBLEM:
If i place a static Ap Div over a sliced page in dreamweaver it places the Ap Div inbetween the slices instead of over the the page. From closer investigation the margins of the Ap div pushes the slices apart to fit in position.
Is there anyway i can place static Ap divs on a sliced page, which in affect using the margins, but doesn't affect the slices.
i hope you can help with this problem.
cheers
Secondly, before I continue, I kind of need to know what an Ap Div is. A wild guess is Absolutely Positioned div, but I have no clue why you did the strange capitalization each time, as if it was a name.
If Ap Div means absolutely positioned, what do you mean by static absolutely positioned?
If you are doing absolute-type positioning I could see 2 (or 4) potential things you're doing:
1. position absolute in fixed units (px, em, etc.), which is slightly different, but similar to position:fixed with fixed units.
2. position absolute with relative units (percentage), whereby it's positioning stuff based off the width of the window (or really containing block). Same goes with position:fixed.
As long as you were using the percentage method (and don't ask me why you were, it makes no sense to me), the answer would be to switch to fixed units, or even to just add a containing block around your page, assuming your page is fixed width (which I assume it is considering the images).
Establishing containing block is essentially as simple as putting in <div style="position:relative; width:desired width of page">insert page content here</div>
What do you suggest is the best way to design a web page, as i though the photoshop method was one of the best ways.
cheers