Hiding a section background using CSS

I am trying to hide the background of a section and I have tried this method but am having no success at all - @media only screen and (max-width: 767px) { .bg-image .column_attr { background-image: none !important; }
}

Can you please have a peek here http://coursemateapp.co.uk/new-home-2/ as I am sure I have put everything in exactly as you stated yet the section background is still showing on smaller browsers.

Hiding the section completely is not an option BTW

Many thanks

Comments

  • Hi,
    you should target the section, not the column. Since you have added the custom class to the section, taget it only. You have not mentioned which section you mean.
    thanks
  • This is on the section with the class .handholdingphone

    My custom CSS is @media only screen and (max-width: 1030px) { .handholdingphone { background-image: none !important; } }

    Or am I missing something here?
  • This is because your custom class was inserted with a dot.
    Remove the dot from the custom class field you added.
    Do this: handholdingphone instead of this: .handholdingphone
    cheers
  • I removed the dot and it has made no difference, it is very frustrating as I cannot see what the issue is.

    Thanks


  • This CSS was fine, just change the dot in custom class inside the section.
    @media only screen and (max-width: 1030px) { .handholdingphone { background-image: none !important; } }
  • Hi thanks for your response.

    I have followed what you have said and checked/double checked but this is not working.

    When I shrink the browser, the background of that section is still visible and shows underneath the writing, thus looking awful.

    There must be something I am doing wrong or even missing here...
  • It's okay, I think I have found the problem, just going to test it through...
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.