Min-width/max-width center image

Permalink Browser Info Environment
Hi-

I added
.nivoSlider img {max-width:1367px !important; min-width:990px !important; }
to the CSS. That works nicely except I now want it centered. I've tried may options, the first one starts centered, the the following images animate in from the left then jump to the center. Any ideas on how to the the reminaing images to always be centered?

Thanks,
Tony

Type: Discussion
Status: New
klotz
View Replies:
shahroq replied on at Permalink Reply
shahroq
Hi,
I suppose centering images by your approach needs some modification at main js file, that i do not recommend.
My recommendation would be add this your custome width/height to main container(.slider-wrapper).
I think adding something like this would do what you want to do nicely:
.slider-wrapper{
   margin-left:auto;
   margin-right:auto;
   max-width:1367px !important; 
   min-width:990px !important; 
}
kenowa replied on at Permalink Reply
kenowa
Thanks! I'll give that a shot!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.