Margins not working on wraps

Hey,

the margins you can set for wraps do not apply. This is because there is no style that says so. You have that style for columns (for example: ".column-margin-50px.column { margin-bottom: 50px !important;}"), however the wraps don't get the class ".column".

So either add styles for the wraps (.column-margin-50px.wrap { margin-bottom: 50px !important;}), or add the class column to all wraps.

Kind regards
Daniel

Comments

  • Hi Daniel,

    not sure what exactly you would like to do but you have Padding option included into each WRAP item so maybe this option will be useful enough for your needs.

    Thanks!
  • Hey,

    thanks for your reply.

    To recreate this, just create a wrap and set its margin bottom to 50px. Now check the page. The wrap will instead have its default margin. The wrap gets the class "column-margin-50px", but no css actually handles wraps with this class.

    Why? Well that is, what i tried to explain in my first post, it is just a bug you can simply fix by following what I wrote.

    It has been a while, since I first posted this, but the issue still persists in version 16.7

    Kind regards
    Daniel
  • edited February 2017
    Let me try to make it easier to understand:

    This is what your base.css looks like from row 486 to row 492:





    /* set in item options */

    .column-margin-0px.column { margin-bottom: 0 !important;}

    .column-margin-10px.column { margin-bottom: 10px !important;}

    .column-margin-20px.column { margin-bottom: 20px !important;}

    .column-margin-30px.column { margin-bottom: 30px !important;}

    .column-margin-40px.column { margin-bottom: 40px !important;}

    .column-margin-50px.column { margin-bottom: 50px !important;}




    And here is what it should look like:



    /* set in item options */

    .column-margin-0px.column, .column-margin-0px.mcb-wrap { margin-bottom: 0 !important;}

    .column-margin-10px.column, .column-margin-10px.mcb-wrap { margin-bottom: 10px !important;}

    .column-margin-20px.column, .column-margin-20px.mcb-wrap { margin-bottom: 20px !important;}

    .column-margin-30px.column, .column-margin-30px.mcb-wrap { margin-bottom: 30px !important;}

    .column-margin-40px.column, .column-margin-40px.mcb-wrap { margin-bottom: 40px !important;}

    .column-margin-50px.column, .column-margin-50px.mcb-wrap { margin-bottom: 50px !important;}




    Please ignore the <br> tags, not sure why they get displayed.

    Wether you would want to use .wrap or .mcb-wrap is up to you, both would fix this issue.



    Kind Regards

    Daniel
  • The option you can see on http://pasteboard.co/vSq1M9K5m.png is for the items inside wrap and not for the wrap itself so it works exactly the way it should.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.