Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

<div> has size 0x-2?

A div I'm using on my website shows up offline, but breaks online. Any reason for that? It's the div with the id "adspace": http://luisdominguez.xyz/temp2/weirdslogans.com/t-shirts/random-is-the-new-plan.html

Also, is there any reason why a webpage would appear differently locally vs. online? I've been having that inconsistency recently. Using Firefox to test, Sublime Text as an editor. Thanks.

1 Answer

Are you using some kind of adblock by any chance?

There are a ton of motives why a website might be different online vs offline. Often we have plugins, extensions, addons or even malware's that only work while navigating in a hosted environment.

. Try changing the ID of your div to something other than "ads" and see if it work, I am not quite sure how all adblocks work, but it is worth a shot ;)

I'm honestly laughing at how funny this is, I am using adblock. I should probably change the name of that div, thanks!