background image not responsive for smaller devices

LA Started by Louis Abasta · April 27, 2019 at 12:09 am · 6 replies 2 voices Last reply 7 years, 2 months ago
LA
Louis Abasta Original poster Member
#1

Hello,
My website background image isn’t being responsive for smaller devices. When my website is viewed the background image is cut off. What custom css can I use to make it work properly?

ST
Spiracle Themes ★ Staff
#2

Hi Louis,

Try the CSS below

#parallax-bg #slider-inner{
background-size: contain !important;
background-position: center !important;
background-repeat: no-repeat !important;
}

Copy and paste it in Appearance -> Customize -> Additonal CSS

Best Regards

LA
Louis Abasta Original poster
#5

Hello,

I tried changing the resolution but all it did was pixelate the image. It works fine when I resize my browser reducing the width, but when I reduce the screen size horizontally, it zooms into the centre of the image instead of scaling the image to fit the container.

Thank you

Post a reply

Join the conversation. Be kind — this is a public forum.

Replying to background image not responsive for smaller devices

By posting, your reply becomes public (unless marked private).