HighDots Forums  

overwrite <nobr> with CSS?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss overwrite <nobr> with CSS? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default overwrite <nobr> with CSS? - 10-20-2003 , 05:59 PM






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

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: overwrite <nobr> with CSS? - 10-20-2003 , 06:12 PM






jumpertz (AT) gmx (DOT) de (BeEnola) wrote:

Quote:
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>

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


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: overwrite <nobr> with CSS? - 10-23-2003 , 05:33 AM



Hi Jukka!

It works - Thank you very much!

Ciao * Kerstin

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.