View Full Version : Help with some Google advert errors when validating

Mar 21st, 2007, 02:19 PM
Hi there,

I've been trying to validate the code on my website but i've got about 4 errors caused by adverts on the page. I would really appreciate any help offered, here are the errors...

Line 236 column 15: there is no attribute "nowrap".
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

Line 236 column 57: there is no attribute "height".
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

Line 271 column 4: there is no attribute "SRC".

Thanks for any help offered.

Mar 21st, 2007, 02:35 PM
nowrap is depreciated in xhtml1.0> (from what I've read)
There is no 'height', get rid of it
SRC should be src

You define height, nowrap in css

white-space: nowrap

But if you read the error messages, you'd have known that wouldn't you ;)

Mar 21st, 2007, 02:56 PM
Thanks a lot for the help :) I read the error messages but wasn't sure how to change it.

With the google advert it now has a blue border around the image, how can I get rid of the border without doing: border="0" ?

Thanks again.

Mar 21st, 2007, 03:00 PM
a img{

Mar 21st, 2007, 03:17 PM
Ahh thanks :o

The page validates now with no errors, but when I go to this page or the index page of the site the error icon appears in the bottom left of the screen. When I double click the error it says this:

Line: 2
Char: 10723
Error: Expected '}'
Code: 0
URL: http://www.paid2review.co.uk

Not too sure what this means? :confused:

Mar 21st, 2007, 03:18 PM
It's a javascript error. You'll have to show us the code you've got

Mar 21st, 2007, 03:32 PM
I had javascript advert on my page, so i've deleted it from the website for now and the error has gone :)

Now i've got another problem :(
On one of my pages i've got a link to an anchor, when I click the link it cuts straight to the anchor but it messes up the top half of the website, and you can't scroll back up to the top.
Its hard to explain without showing you the page itself. If you click on the article title you can see what I mean...


I'm not sure if it must be an error with my CSS? Or something causing the anchored link to behave weird?