Currently, I am working on a website project where I am using a background image with Bootstrap 4. However, I am facing an issue where the image does not center properly as it resizes at different breakpoints. I am contemplating whether to use resized images from Photoshop or resize the images using CSS in order to maintain the centering of the image on the screen. Below is a snippet of the media query code that I have used:
.landpage-img {
background: url(../img/bg-neon-01-2000x1333.jpg) no-repeat center center fixed;
}
Thanks for your help in advance!