Home › Forums › CSS › [Solved] Placement of background image › Reply To: [Solved] Placement of background image
May 19, 2014 at 1:39 am
#170582
Participant
@Atelierbram Thanks.
On Iphone 4 it looks good
On Iphone 5 it looks good in portrait mode but in horizontal mode it adjust the image to the right…
On Samsung Galaxy,,, it looks bad in both portrait and horizontal mode, the image will not center or adapt to screen size.
I did add the last closing curly brace. Anything else I missed here?
Thanks
body.myatu_bgm_body {
background-color: #FFFFFF !important;
background-position: 81% center !important;
background-repeat: no-repeat !important;
background-size: auto 85%;
}
@media (max-width:850px) {
body.myatu_bgm_body {
background-position: 0 0;
background-size: contain;
}
}