Hi

You'd have to define a "blank"

is it a tab -> \t, a newline -> \n, a carriage return \r 

You can use pre or you can use "white-space : pre;" to PREserve the whitespace 
in the string appearing in the cell.

  is an html entity for the non breaking space character. You should use 
it when you want just that - a non breaking space to stop a line from 
wrapping (or user white-space : nowrap) - rather than to define any sort of 
fixed width padding or margin, as nbsp is a wide as a piece of string is 
long.

HTH
James


On Wed, 12 Dec 2007 03:09:03 am Simon Cockayne wrote:
> Hi,
>
> <!-- Happy Holidays one and all! -->
>
> I have an HTML page and I want to (well my client wants me to) preserve
> leading blanks in the value of a table data cell.
>
> I could use <pre> </pre> around the data.
>
> Or I could use an &nbsp; for each leading blank.
>
> Any others?
>
> What is the "standard" way to do it?
>
>
> Cheers,
>
> Simon
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [EMAIL PROTECTED]
> *******************************************************************




*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to