PDA

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



paid2review
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".
SRC="http://kona.kontera.com/javascript/lib/KonaLibInline.js"></script>


Thanks for any help offered.
Matt

Nightfire
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

height:32px;
white-space: nowrap

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

paid2review
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.
Matt

Nightfire
Mar 21st, 2007, 03:00 PM
a img{
border:0;
}
:)

paid2review
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:

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

paid2review
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...

http://www.paid2review.co.uk/moneyarticles.html

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

Matt