
Originally Posted by
ideasgirl
Thanks! I tried that approach (your suggestion) but then each image will constrain differently, and it will throw off the padding created to make them center properly.
I have max-width and height in place, not sure if changing to your suggestion will change the result to a successful display, will it?
I'm not sure why you combined padding on parent div and margin on child, but that's what set you off on the wrong track. I got it working, but it still needs additional @media queries to make it work with different screen sizes...
Code:
.slider-wrapper.theme-default {
background-image:url("../images/slider-bg.png");
background-repeat:no-repeat;
background-size:contain;
padding-left:53px;
padding-top:49px;
}
.theme-default .nivoSlider {
background:url("../images/loading.gif") no-repeat scroll 50% 50% #fff;
max-height:300px;
max-width:600px;
position: relative;
}
Now, find your breakpoints and change 53px and 49px to whatever is necessary to get it properly aligned for those screen sizes. That's as far as I can go with this, don't have time to play with it some more, sorry.
Regards,
Leonard