WordPress.org

Ready to get started?Download WordPress

Forums

Centering images inside a slider (3 posts)

  1. Miguel.Mend
    Member
    Posted 9 months ago #

    Hello

    I have a slider on my website that contains several images, but this images are smaller than the actual size of the container so they are put on the top left hand corner. Looking like this:

    tortasrichard.mx

    What I want to do is have them on the center of the slider. I've tryed a few things mentioned on several other threads on this forums such as position:center, margin:0 auto without success.

    Any help you could provide would be really appreciated.

  2. esmi
    Forum Moderator
    Posted 9 months ago #

    Is this slider part of your theme? Or is it added by a plugin? If it is the former, I'm sorry but as you are using a non-WPORG theme, you need to seek support from the theme's developers - paid or otherwise. We only support themes downloaded from wordpress.org here.

  3. Laura Hartwig
    Member
    Posted 9 months ago #

    Hi Miguel,
    It looks like you're using the NivoSlider? Right now on line 218 of your style.css file, you have #slider img with a position of left:0. Why not try left: 25%? You said you just wanted to center the image, correct, not make it fit? It looks like this is a custom theme - if it's not, be sure to use a Custom CSS Plugin to make this change. Hope it helps!

Reply

You must log in to post.

About this Topic