Margin - by jeremy - on WordPress WooCommerce support

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

  • Avatar: tlgv
    jeremy
    Participant
    January 23, 2017 at 10:45

    Hello,

    I want to add a right margin to my div on mobile, in order to have the same margin I have at the left.

    Margin css property left works, but not margin right property. How can I fix that?

    Please find screenshot.

    Thank you.

    Please, contact administrator
    for this information.
    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 23, 2017 at 12:18

    Hello,

    Please provide us with a direct page link where you want to add margin.

    Regards,
    Rose Tyler.

    Avatar: tlgv
    jeremy
    Participant
    January 23, 2017 at 16:05

    Hello,

    On my home page:

    Thank you.

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 23, 2017 at 16:17

    Hello,

    Go to Edit page > edit Row or Column settings and go to Design Options tab, there change padding and margin http://prntscr.com/dzaiiz
    Or try to add this code in Custom CSS:

    .home .textvideohome {
        padding-left: 15px;
        padding-right: 15px;
    }

    Regards,
    Rose Tyler.

    Avatar: tlgv
    jeremy
    Participant
    January 23, 2017 at 16:52

    Hello,

    Thank you but it doesn’t work. This code doesn’t move my block, only my text. I want to have a white margin at each side of my block. I have a grey background in my block.

    Thank you for helping

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 23, 2017 at 16:59

    Hello,

    In this case, try to add this code in Custom CSS for mobile:

    .home .textvideohome {
        width: 90%;
        margin-left: 5%;
    }

    Regards,
    Rose Tyler.

    Avatar: tlgv
    jeremy
    Participant
    January 23, 2017 at 17:15

    Thank you, it’s ok !

    Avatar: Eva
    Eva Kemp
    Support staff
    January 23, 2017 at 20:39

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

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

The issue related to '‘Margin’' has been successfully resolved, and the topic is now closed for further responses

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