Mido™
04-06-2011, 10:22 PM
I have a problem in making the position of the background image to be fixed with the changes of the screen resolution.
the problem happen and the the horizontal position of background image change when I open the page on another screen with another resolution.
and this is the css code of the div :
div#main{
width:990px;
margin-right:auto;
margin-left:auto;
padding-top:20px;
padding-bottom:20px;
background:#c5c5c5;
background-image:url(images/filmobk2.jpg);
background-position:19cm 13em;
background-repeat: no-repeat;
background-attachment:fixed;
}
I tried to make it with "em,%,px" and all of them also make it's position change.
the problem happen and the the horizontal position of background image change when I open the page on another screen with another resolution.
and this is the css code of the div :
div#main{
width:990px;
margin-right:auto;
margin-left:auto;
padding-top:20px;
padding-bottom:20px;
background:#c5c5c5;
background-image:url(images/filmobk2.jpg);
background-position:19cm 13em;
background-repeat: no-repeat;
background-attachment:fixed;
}
I tried to make it with "em,%,px" and all of them also make it's position change.