Header CSS not performing on Column Item Muffin Builder

Hi,

I would like to place a margin on the header column element of my website https://shanedalton.ie/ 

- If you view the website I have surrounded the text "WEB DESIGN DONEGAL, SLIGO & LEITRIM LOCAL BUSINESS WEBSITE SOLUTIONS" with a background of black with opacity of .4. I would like this background to have a margin which I was able to achieve using the muffin builder > add item > column > content > Custom | Styles box. 

However I this CSS creates the same margin on a phone media device and the text looks terrible. I have tried numerous attempts to target the css for BOTH media query sizes outlined below and I have had no joy. This is the CSS I used:

margin: 20px 100px; on viewports above 769px  and a margin: 0px for viewports under 769px.

I tried variations of the !important rule on both and still no joy. I tried adding the CSS to custom css in the muffin builder module and below the muffin builder itself in page edit mode. No joy.

Can someone please help me with this. If you need my WordPress logins that is no problem.

Many Thanks

Shane

Comments

  • Hello Shane,
    could you please provide us with some screenshots so we can understand better?
    thanks
  • edited July 2018
    Hi Bryan,


    What I am aiming to achieve is very straightforward. Here is a screen shot with a badly drawn red rectangle showing what I am trying to do - https://snag.gy/quMTUQ.jpg

    I want to give the div (surrounded partially with an opaque background) a margin on all sides

    20px (top & bottom) and 100px (left and right)


  • Hi,
    margin-left and margin-right makes no sense, because you do not "scale" or "cut" your div with margin tag. Even if you do it, you'll center it like it's on beginning of customizing.
    You have to edit it in the Muffin Builder.
    I made a CSS for you with this one collumn for margin top and bottom, is this effect ok?
    @media (min-width:767px){
    #Content .mcb-column:nth-child(1) {
    margin-top:50px;
    margin-bottom:50px;
    }
    }
    Thanks.
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.