Jump to content

[SOLVED] Image Positioning


Lambneck

Recommended Posts

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?

 

Link to comment
https://forums.phpfreaks.com/topic/128799-solved-image-positioning/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.