Div Align trouble, can't align the div when resized |
Div Align trouble, can't align the div when resized |
Feb 27 2005, 12:06 AM
Post
#1
|
|
![]() Member ![]() ![]() Group: Member Posts: 10 Joined: Aug 2004 Member No: 37,027 |
Muh Xanga
Okay. So, it started out as a nice layout design and all, nice and simple, and now it's a nightmare. It looks fine when the window is full on a certain resolution, but once it's resized, the div layer with all the entries moves and is completely out of line. Lend me some help? I'll give you a muffin. =] |
|
|
|
![]() |
Feb 27 2005, 01:29 AM
Post
#2
|
|
![]() Member ![]() ![]() Group: Member Posts: 10 Joined: Aug 2004 Member No: 37,027 |
Replacing "background-attachment: fixed" with "position: static" makes it so that the background image and the div remain in the same position even when the window is resized.
BUT when trying to position the div with "margin-top: XX px", this causes the background image to move too. Trying to align the div within the image is impossible because as I move the div up or down to fit it into the background, the background itself moves too so that in the end the background ends up at the top, covered over by the xanga banner. Any way to set the background position by px like the div or is left/right/center/top/bottom the only options?? |
|
|
|
wiredXecstacy Div Align trouble Feb 27 2005, 12:06 AM
monkigurl77 Can we see your code?
What kind of muffin? Feb 27 2005, 12:11 AM
wiredXecstacy QUOTE<style type="text/css">
body ... Feb 27 2005, 12:13 AM
Yunoa try adding "position:static;" to your di... Feb 27 2005, 01:02 AM
largosama set xanga to left align and position the div from ... Feb 27 2005, 03:16 AM![]() ![]() |