Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8343357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:02:04+00:00 2026-06-09T06:02:04+00:00

This sounds counter-productive, but it’s not: I have a div element which only contains

  • 0

This sounds counter-productive, but it’s not: I have a div element which only contains the ad – this basically just gives the ad some padding and surrounds it with a nice border/box.

I know a certain percentage of my potential users will use adblock, so when they will visit the site, they’ll see the main content and a weird elongated div below it with seemingly no purpose. Are there any keywords which such ad blockers look for in divs, which I could use to ensure that if ads are blocked, the entire div is invisible?

If not, perhaps there’s a way to display a message to let ad blockers know what the div is usually for? I’m avoiding this because it seems a little passive aggressive and if users want to block ads, they should have just as good an experience as the majority of users.

Thanks for any help or advice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T06:02:06+00:00Added an answer on June 9, 2026 at 6:02 am

    You can use JS to test the height of the ad container. If it is collapsed (as you’d expect if there is no ad in it), then you may hide it.

    So use Developer tools to see the height of the container with ad, and height without ad. In the JS, if the height is the same as “without ad” then you know the ad blocker is active.

    How to block Adblock has some more information on this. You may not be trying to block it, but the idea is the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This sounds basic, but then again it may not be. I have some text
This sounds like a problem many others have posted about, but there's a nuance
I know this sounds confusing: I have just built some basic prev/next pagination for
This sounds kinda dumb, but I have a sharded DB that I no longer
This sounds easy but. I am simply not able to do it. Here is
I am sorry, if this question sounds stupid, but I have searched a lot
This sounds dumb, but I can't get it to work. I think i just
this sounds like a really simple question but could easily have a very complicated
This sounds simple, but I just can't get it... I need to display a
This sounds funny..just a little experiment. i wanted to simulate a drag drop of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.