This was quite frustrating, until we figured it out.
Whilst developing a site, I noticed that the main column on the index page had suddenly disappeared. It was working fine earlier and I couldn’t figure out what had happened.
Background
The site is a recruitment site, and the index page has job adverts on it.
So, after some time, it eventually dawned on me.
It was working fine on one instance of Firefox, without Adblock installed. But on an instance with Adblock installed it wasn’t working. Strange.
The problem
So I looked at the generated code. On the copy of Firefox with Adblock installed, there was an inline style added to the containing div, set to display: none;.
Although a little annoying, I was impressed with how Adblock worked. It had obviously scanned the page for anything with a class or ID of ‘advert’ and added the inline style. This was confirmed once I’d disabled the plugin.
The fix
This was easy to fix, I just changed the div’s ID to something else, and changed the appropriate styles. Ta da! Easily fixed.
So, be careful what you name your divs as this may have an effect on how a user views your site.


No Comments
Post your own comment.
Be the first to comment. Go on, I dare you!