By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,446 Members | 1,185 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,446 IT Pros & Developers. It's quick & easy.

overwrite <nobr> with CSS?

P: n/a
Hi!

I have a result of a Java-Library that looks similar to
<td class="xyz"><nobr>TEXT</nobr></td>
I am not able to change this coding. But has anybody an idea to define
another tag - outside the table or by overwriting the class-definition
- that prevent the <nobr>?
The result should be that the text is allowed wrap.
Is there any solution for my problem?

Ciao * Kerstin
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ju******@gmx.de (BeEnola) wrote:
I have a result of a Java-Library that looks similar to
<td class="xyz"><nobr>TEXT</nobr></td>
Odd. There can be reasons to use the nonstandard <nobr> markup, but
this is hardly one of them, since you could use
<td class="xyz" nowrap>TEXT</td>
I am not able to change this coding. But has anybody an idea to
define another tag - outside the table or by overwriting the
class-definition - that prevent the <nobr>?


The <nobr> markup is not defined in any specification, so there can be
no well-defined way to override its effect. But you could try using
something that would make sense if <nobr> were a real element with an
effect equivalent to white-space: nowrap (as it more or less has):
td.xyz nobr { white-space: normal; }

Seems to have the desired effect on IE 6.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jul 20 '05 #2

P: n/a
Hi Jukka!

It works - Thank you very much!

Ciao * Kerstin
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.