Upon reading the reponses, one thing remains clear:
Without an example to look at, the options have no relevance.
You claim your client says the empty space is part of the information?
Show us.
Only then can the appropriate solution be isolated.
Slightly off-topic, but perhaps not:
I have a client who had a site built by me several years ago. (
http://jewelrealestateagency.com ) The client insisted that all text
(headings and all) be indented to match the traditional style he
preferred to see his writing displayed in.
I used CSS ( p{text-indent:1.0em} ) and they're happy. At the same
time, no actual space is added to the information since I cannot see how
/nothing/ is supposed to equal /something/. Again an example would
clear this up.
Joseph R. B. Taylor, Designer/Developer
---------------------------------
Sites by Joe, LLC
"Clean, Simple and Elegant Web Design"
Phone: (609) 335-3076
Fax: (866) 301-8045
Web: http://sitesbyjoe.com
Email: [EMAIL PROTECTED]
Simon Cockayne wrote:
Hi,
Ok...I asked a question about how to preserve whitespace...I got a
variety of answers (use PRE, use nbsp, use CSS).
I shall clarify the question.
This is *not* a presentation/layout issue.
I have a field that contains leading blanks (space) characters that
the user tells me has semantic meaning that they wish to preserve.
* PRE
If I use PRE, the font will default to some mono fixed-width affair. I
could use CSS styling to change the PRE default I suppose, but the
HTML spec advises against this
I believe we could use CSS to style the PRE text in the required
font…but I have also noted that the HTML spec
http://www.w3.org/TR/html401/struct/text.html#edef-PRE states:
"The DTD fragment above indicates which elements may not appear within
a PRE <http://www.w3.org/TR/html401/struct/text.html#edef-PRE>
declaration. This is the same as in HTML 3.2, and is intended to
preserve constant line spacing and column alignment for text rendered
in a fixed pitch font. Authors are discouraged from altering this
behaviour through style sheets."
What is the downside of using styling in PRE?
* CSS
Whilst I am happy to use CSS to style fonts and presentation et
cetera...I don't want to use CSS to preserve the leading spaces
because if CSS is turned off the the leading spaces will be
lost...won't they?
Also, if the spaces are preserved using CSS styling will the posted
value of the field contain the leading spaces? (I will test this after
I make this post).
* NBSP
Someone commented that NBSP is "as wide as a piece of string is long".
What are the thoughts on this?
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]
*******************************************************************
begin:vcard
fn:Joseph Taylor
n:Taylor;Joseph
org:Sites by Joe, LLC
adr:;;408 Route 47 South;Cape May Court House;NJ;08210;USA
email;internet:[EMAIL PROTECTED]
title:Designer / Developer
tel;work:609-335-3076
tel;cell:609-335-3076
x-mozilla-html:TRUE
url:http://sitesbyjoe.com
version:2.1
end:vcard