• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    User css clarification

    Opera for Windows
    2
    3
    1684
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rseiler
      rseiler last edited by

      I often use lines this to close gaps at the top of web pages where ads would otherwise be. I "inspect element" to find the name used for the area on the given site. In this example, it's ".header-banner".

      .header-banner { display: none !important; }

      Once in a while, a site won't use a name for such an area. I'm not sure why. So I then look to Firefox's AB+ to see how it's handling it. In one case, it used this:

      ##div[element.style="white-space:nowrap;overflow: hidden; min-height:120px; margin-top:0; margin-bottom:0;"]
      

      But how do I use that in Opera? Appending "{ display: none !important; }" to it does nothing. I think user css is probably looking for another variation on it.

      Thanks

      Reply Quote 0
        1 Reply Last reply
      • Deleted User
        Deleted User last edited by

        div[style="white-space:nowrap;overflow: hidden; min-height:120px; margin-top:0; margin-bottom:0;"] {display: none !important; }
        should work.

        Reply Quote 0
          1 Reply Last reply
        • rseiler
          rseiler last edited by

          Yes, thanks!

          Reply Quote 0
            1 Reply Last reply
          • First post
            Last post

          Computer browsers

          • Opera for Windows
          • Opera for Mac
          • Opera for Linux
          • Opera beta version
          • Opera USB

          Mobile browsers

          • Opera for Android
          • Opera Mini
          • Opera Touch
          • Opera for basic phones

          • Add-ons
          • Opera account
          • Wallpapers
          • Opera Ads

          • Help & support
          • Opera blogs
          • Opera forums
          • Dev.Opera

          • Security
          • Privacy
          • Cookies Policy
          • EULA
          • Terms of Service

          • About Opera
          • Press info
          • Jobs
          • Investors
          • Become a partner
          • Contact us

          Follow Opera

          • Opera - Facebook
          • Opera - Twitter
          • Opera - YouTube
          • Opera - LinkedIn
          • Opera - Instagram

          © Opera Software 1995-