Single image alignment on mobiles - by neil

This topic has 12 replies, 2 voices, and was last updated 10 years, 9 months ago ago by Robert Hall

  • Avatar: midlandsonline
    neil
    Participant
    February 25, 2015 at 14:37

    Hi

    I have just added some single images both in visual composer single image and using text block insert media. I have aligned center

    On mobiles the images appear left aligned and look really untidy. Is there some css to align center on all devices

    I have tried this code but it just pushed the images to the right when the screen is portrait

    .wp-caption, .wp-caption-text, .gallery-caption, .bypostauthor, .aligncenter {
    margin-left: 50px !important;
    }

    11 Answers
    Avatar: Robert Hall
    Robert Hall
    Participant
    February 25, 2015 at 15:20

    Hello,

    Could you please provide us with link to page where you added images or show us screenshots?

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant
    February 25, 2015 at 15:24
    Avatar: midlandsonline
    neil
    Participant
    February 25, 2015 at 15:33

    its the 4 images restaurant, bar, hotel, offers and events

    Avatar: Robert Hall
    Robert Hall
    Participant
    February 25, 2015 at 15:58

    Please try to add this code into custom.css file.

    @media only screen and (max-width: 767px){
    .page .wpb_single_image a .aligncenter{
    position: relative;
    left: 50%;
    margin-left: -135px;
    }
    }

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant
    February 25, 2015 at 16:13
    Avatar: Robert Hall
    Robert Hall
    Participant
    February 25, 2015 at 16:16

    Hello,

    Please provide us with wp-admin access in Private Content.

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant
    February 25, 2015 at 16:50

    sure

    Please, contact administrator
    for this information.
    Avatar: midlandsonline
    neil
    Participant
    February 26, 2015 at 11:29

    Hi

    Is anyone looking at this for me? I sent login details yesterday

    Avatar: Robert Hall
    Robert Hall
    Participant
    February 26, 2015 at 11:56

    Hello,

    I’ve made changes with code in custom.css file. Please check it now.

    Regards,
    Robert Hall.

    Avatar: midlandsonline
    neil
    Participant
    February 26, 2015 at 13:43

    Thanks mate!!!!!

    Awesome

    Avatar: Robert Hall
    Robert Hall
    Participant
    February 26, 2015 at 13:45

    Hello,

    You’re welcome!

    Regards,
    Robert Hall.

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

The issue related to '‘single image alignment on mobiles’' has been successfully resolved, and the topic is now closed for further responses

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