Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS and warnings - please help

Featured Replies

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

It looks like something elsewhere in a script might be causing this.

 

Can you find any references to where the image tag is being written? Try searching your script files for $strManufacturerNameLogo to see if you can spot anything.

 

Alternatively try renaming your image file to canon-s.gif or canonsmall.gif as something might be breaking underscores.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.