Issue
I'm currently trying to make a background image for desktop and mobile. But I don't know how to interpret the different sizes into the webpage. I have a media query set up, but every time I try to input the width: 150%
and overflow: hidden
it still doesn't seem to fix the problem.
This what it looks like for desktop and this is what mobile looks like. You can see my problem with mobile is that I'm trying to expand the background image/src to make the arcade machine appear bigger/fuller and more centered for a better website design If anyone can help me figure this out, I will try anything.
Solution
add these lines to your images in the CSS
background-position: center center;
background-attachment: fixed;
object-fit: cover;
Answered By - Elazar Halperin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.