Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

nobr tag

1 view
Skip to first unread message

fidokomik

unread,
Jul 4, 2008, 8:53:53 AM7/4/08
to
I tried to ask in other group but without answer so I try to ask again
here.

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 &#46; hyphen as &#45; 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>

Andreas Prilop

unread,
Jul 4, 2008, 10:16:14 AM7/4/08
to
On Fri, 4 Jul 2008, fidokomik wrote:

> 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 &#8209;
instead of the ASCII hyphen.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/search?q=author:Alan.J.Flavell

Chris F.A. Johnson

unread,
Jul 4, 2008, 1:22:40 PM7/4/08
to
On 2008-07-04, fidokomik wrote:
> I tried to ask in other group but without answer so I try to ask again
> here.
>
> 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 &#46; hyphen as &#45; 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)

Jukka K. Korpela

unread,
Jul 4, 2008, 3:47:08 PM7/4/08
to
Scripsit fidokomik:

> 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/

0 new messages