Hello,
i have a problem on my site on mobile view.
The picture i set as background does not fit correctly in the view. On desktop everything looks fine but i don’t know how to let the background picture start centered top, right below my logo. I dont want mobile users to see only the legs of the persons.. likely more the faces – same as on desktop view.
Could someone please advise? Thanks!
Hi Wanted2b,
If you want greater control over the background in mobile devices I suggest you create another section to show only on mobile and use an image better adapted to that screen size. You can assign unique IDs to your sections and then hide/show them using CSS like this:
@media only screen and (min-width: 768px) {
#section-desktop {
display:block !important;
}
#section-phone {
display:none !important;
}
}
@media only screen and (max-width: 767px) {
#section-desktop {
display:none !important;
}
#section-phone {
display:block !important;
}
}
Regards,
Rikard
Thanks i got it!
#”section-phone” has to be the ID, which you put into the section you want to only show on mobile devices then.