Align an image center - by Brockway - on WordPress WooCommerce support

This topic has 4 replies, 3 voices, and was last updated 8 years, 7 months ago ago by Eva Kemp

  • Avatar: Brockway
    Brockway
    Participant
    August 26, 2015 at 14:17

    Hi,

    in my homepage i try prettymuch everything to align an image center, but all my code is not working.
    i have several website running visual composer, without an issue, but the one running your theme make all my code not to work.

    i just want the image near the footer with chinese characters to align in he middle, but actually with styling the image in VC or normal editor, nothing work.

    Cheers.

    http://www.ultratrailinfrance.com/fr/accueil/

    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 26, 2015 at 14:37

    Hello,

    You can try to add this code in Global Custom CSS (Theme Options->Custom CSS).

    .vc_custom_1440594270333 .wpb_single_image img {
        left: 50%;
        position: relative;
        margin-left: -124px;
    }

    Regards,
    Robert Hall.

    Avatar: Brockway
    Brockway
    Participant
    August 26, 2015 at 14:38

    Does this code will affect all my images ?

    Also the problem is not to fix a single image, because it will be a shame for me and you that i open a ticket for every single image on my website, but to fix the issue of why i cant center it with code in editor or VC…

    Cheers.

    Avatar: Eva
    Eva Kemp
    Support staff
    August 26, 2015 at 17:28

    Hello,

    Try to use this css code:

    .wpb_single_image img {
       width: 100%;
    }

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.