karl@blueskied.com wrote:
> I am trying to make a CSS based site. When i put the Google Adsense
> code into it, the layout breaks in Firefox, works in IE 7.
>
> Here's the page without adsense:
> http://www.blueskied.com/images/misc/CSSTest/test.htm
>
> With adsense, broken layout:
> http://www.blueskied.com/images/misc...st_adsense.htm
>
> Any ideas what i am doing wrong?
Creating pages with no doctype, and with errors?
You have a misplaced </head> tag. It needs to be after the link to the
stylesheet.
You have no DOCTYPE, throwing browsers into quirks mode. I would suggest
using this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
I experimented with a copy of your page, corrected and added the above,
and do not see what you claim to see.
Code like this:
<br><br><br><br><br><br><br><br><br><br><br><br><b r><br><br>page
end<br>
...is undesirable, and some browsers will just collapse all of the <br>'s
into one. Use CSS margins instead.
BTW, I do not see anyone's adsense ads; those domains are in my HOSTS
file.
--
-bts
-Friends don't let friends drive Vista