Centering images on small browsers/devices
-
Even though the css sets .simple-slide background-position: center center, the images are not being centered on the phones and tablets that I’ve tested on. If I add center center to the css where the image is called, for example .simple-slide-1, then it does work. I don’t want to add any css for the slides as it might be hard to know how many slides there will be. Is there a way to add this to the slider php code? If so, can you point to where I should add it so the css code looks like this:
.simple-slide-1 { background: url(image.jpg) center center; }
https://www.ads-software.com/plugins/simple-fullscreen-responsive-slider/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Centering images on small browsers/devices’ is closed to new replies.