I found at W3C web that tag <nobr> is not valid in HTML 4.01
specification.
Can anybody help me to find a way to substitute this tag? For example
central-european date format is "20.01.2008". When I use date in long
paragraph text then I want to avoid to wrap date at dot, so I use some
like
<p>some text here for date <nobr>20.01.2008</nobr> and some other
text</p>
I tried to use <pre> with style
* pre {font-family: inherit; font-size: ingerit; font-weight:
inherit;}
<p>some text here for date <pre>20.01.2008</pre> and some other text</
p>
but this not work in IE6.
Other idea I have is to write dot as . hyphen as - but I don't
know
all characters on which browsers tend to wrap text.
Can anybody help me please?
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from
another non-spammer site please.)
Please reply to <petr AT practisoft DOT cz>
> I tried to ask in other group
Which?
> but without answer so I try to ask again here.
I think <news:comp.infosystems.www.authoring.html> is better suited.
> I found at W3C web that tag <nobr> is not valid in HTML 4.01
> specification.
> Can anybody help me to find a way to substitute this tag?
This is discussed in detail at
http://www.cs.tut.fi/~jkorpela/html/nobr.html
> For example central-european date format is "20.01.2008".
There is no such thing as a "Central European date format".
On the contrary, International Standard ISO 8601 has been
adopted as European Standard EN 28601.
http://www.w3.org/QA/Tips/iso-date
Your sample date should be written 2008-01-20. To prevent
a line break, you might write the non-breaking hyphen ‑
instead of the ASCII hyphen.
--
In memoriam Alan J. Flavell
http://groups.google.com/groups/search?q=author:Alan.J.Flavell
> but this not work in IE6.
> Other idea I have is to write dot as . hyphen as - but I don't
> know
> all characters on which browsers tend to wrap text.
Use CSS: white-space: nowrap;
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
> I tried to ask in other group
And now you multiposted. Is there any more cluelessness you could
achieve?
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/