Lambneck Posted October 17, 2008 Share Posted October 17, 2008 Hello, In order to avoid the problems with placing an image in an <h1> tag I have used the following CSS: body { background-image: url(../pix/head.gif); background-repeat: no-repeat; background-attachment: fixed; background-position: 42% 0%; } Unfortunately this hasn't created exactly created the effect I want, which is to have the image fixed in the exact position i put it in. So now, when using the code above, I adjust the browser size or scroll down on the page the image is moving in the background or scrolling along behind the rest of the page. Is there anyway to fix the images position so that it will not move with browser size adjustment and page scrolling? Quote Link to comment Share on other sites More sharing options...
haku Posted October 17, 2008 Share Posted October 17, 2008 You have to change the background position from a percentage to a pixel size, and remove position:fixed. Quote Link to comment Share on other sites More sharing options...
Lambneck Posted October 17, 2008 Author Share Posted October 17, 2008 Great! thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.