Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Placement of background image Reply To: [Solved] Placement of background image

#170582
karimphoto
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;
}
}