I need to put a button link on the left and right sides of the browser window, so I guess it would be attached to the body tag. The code below is how I marked up the html but I'm not sure if it will work if both links are in the one div as they will be on opposite sides of the window:

Hi, this might be to obvious but why don't you float them left and right? Or is there a particular reason you want to use AP?

PaulOB
—
2010-03-08T13:24:27Z —
#3

Hi,

Positioned elements are positioned in respect to the nearest parent that has a position defined (either absolute or relative). If none exists then (and only then) will the element be placed in respect of the viewport.

You have placed the absolute elements inside a parent that has position:relative applied and so all positioning will be in respect of this parent and not the viewport.

Either remove the position:relative from the parent or move the absolute elements outside the current context so that the body is the parent.

However if you place these links on the left and right side of the browser you will need to protect them from being overwritten by other content. You may be better off floating them as mentioned above but of course depends on what your designs look like

gwh
—
2010-03-09T03:00:13Z —
#4

Yeah I managed to move the html outside the wrapper div and then it was all positioned in relation to the body element which is what I wanted, so thanks again.