PDA

View Full Version : CSS validation warnings - help please



Yangster
14 Oct 2008, 09:10 AM
Hi,

Just coded the following page in CSS but getting warnings when testing the specific errors are -

<img> discarding newline in URI reference

I can see that this is caused by a RETURN or newline in the code - the page is dynamically generated - here is the section that shows the error -

</form></td></tr><tr align='center' valign='middle'>
<td align='center'><img src='products/canon
_s.gif' alt='Canon'> </td>

So at the end of line 2 you can see the URL is broken over to the newline .... here is the chunk of code that is producing same -

$strTable = $strTable . "<tr align='center' valign='middle'>\n"."<td align='center'>$strManufacturerNameLogo</td>\n"."<td align='center' valign='middle'>".($strManufacturerName)." " . $strProductType . "</td>\n"."<td align='left' valign='middle'>";

Can anyone tell me why this is causing the warnings that I am getting please.

The page that refers (if you want to look at the code) is - Inkjet Cartridge selector (http://www.dvd-and-media.com/cartridges_index.php)


All help much appreciated

Simon