peeaitchpee
06-09-2009, 07:44 PM
I am having a little difficulty with aligning two divs.
I have one 800 wide div that has the site content...it needs to be centered at all times.
The second div is 160 wide and I want it at the same height as the first, but ten pixels to its right.
This image should visually show it:
http://www.yanks-abroad.com/extras/example.gif
I have tried absolute position 50% 0% for the first with the second as relative..and it overlays it...treid different combinations of float as well.
What am I doing wrong?
Thanks in advance
I have one 800 wide div that has the site content...it needs to be centered at all times.
The second div is 160 wide and I want it at the same height as the first, but ten pixels to its right.
This image should visually show it:
http://www.yanks-abroad.com/extras/example.gif
I have tried absolute position 50% 0% for the first with the second as relative..and it overlays it...treid different combinations of float as well.
What am I doing wrong?
Thanks in advance