Support » Plugin: Cyclone Slider » How can I center (crop) images in the slideshow?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I added this CSS to my child theme’s style.css file to center images that are narrower than the slider width:

    .cycloneslider-slide img { /* Cyclone Slider 2 plugin */
    	margin: 0 auto !important; /* center image in slider */
    Plugin Author kosinix


    Hello guys,

    There is a good example on my site:

    Click on the 7th slide with the pictures of wildebeest. As you can see I added a text-align:center on the image containing element:

    .cycloneslider-template-lea .cycloneslider-slide{

    and similar to Chad Warner’s comment above, add margin: 0 auto. BUT, adding !important is considered bad practice, so just make your style more specific (you can google that).


    .cycloneslider-template-lea img{
         margin:0 auto;

    Note, you have to change .cycloneslider-template-lea to the class name of your template.

    Thanks Chad, worked a treat!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I center (crop) images in the slideshow?’ is closed to new replies.