Posted: Sun Feb 03, 2008 12:30 pm Static image in background, with static image in foreground
I need help with positioning a static image that will be in the back ground (not neccearily the background-image) with another image directly on top of it so that text can scroll inbetween them as you go down the page. While the images stay at the top of your screen while you scroll.
I've tried several differnt ways and I can't get it to do what i'm describing...
Create a <div> with a background image that has background-attachment: fixed and is relatively positoned. Put the text in this.
Then create, within this same <div>, another <div> that is absolutely positioned where you want it and make sure it has a height and width applied to it big enoughj to fit the image. Then make this image a background image and background-attachment: fixed
I've tried this on FF and IE 7 and it seems to work.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum