Background image of feature in hompage not responsive
-
Hello,
I hope I’m placing this in the right topic on the forum.
Im building this website for a friend of mine:
http://computerservicezeewolde.nl/motorservice3/My website seems to work fine but on my mobile phone two of the background images on the homepage are not resizing properly (it’s the one with the silver and black bike and the photo with all the race bikes in a row). I’ve tried searching for a solution and I ended up on this website:
https://wpbloggingnerd.org/how-to-make-background-images-responsive-in-wordpress/So I tried customizing my CSS with something like this:
aside.widget:nth-child(6) > section:nth-child(1) { background: #000000 url(http://computerservicezeewolde.nl/motorservice3/wp-content/uploads/2019/02/foto-3.jpg) no-repeat center top; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } @media only screen and (max-width: 478px) { aside.widget:nth-child(6) > section:nth-child(1) { background-size: 100%; } }But that didn’t work. Next to that I have another issue. When I open the website on mobile there is a huge whitespace next to my website that I can scroll to. I would like the website to respect the screen size and not get any bigger then needed.
So in short I have two issues:
1. two background images are not responsive on the mobile view
2. Website is wider then it needs to be on the mobile viewHelp would be much appreciated,
Kind regards,
ThomasThe page I need help with: [log in to see the link]
The topic ‘Background image of feature in hompage not responsive’ is closed to new replies.