[css-d] re. refining tex-align: justify

2007-10-02 Thread Michael Leibson
Jukka K. Korpela wrote: 

. . . it is easy to insert a no-break space,. . .  as the entity reference 
nbsp;, 
 e.g. likenbsp;this? 

Similar things can be done in CSS . . . you can write
span class=nobrlike this?/span
with
 .nobr { white-space: nowrap; }

Jukka K. Korpela (Yucca)
http://www.cs.tut.fi/~jkorpela/ 


Thanks to both you, Jukka, and Philippe, for addressing this problem.

Jukka, I don't know what I'm doing wrong, but neither nbsp; nor creating
a span class with {white-space: nowrap;} has so far worked for me.  

If you could possibly take a quick look at my css and mark-up, at: 

http://members.distributel.net/~leibson/justified%20text,%20with%20various%20problems.htm
 

 -- I'd be most grateful!

Oh yes:  does nbsp; work in HTML 4.01 Transitional?

Thanks!

- Michael




  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] re. refining tex-align: justify

2007-10-02 Thread Jukka K. Korpela
Michael Leibson wrote:

 I don't know what I'm doing wrong, but neither nbsp; nor
 creating  a span class with {white-space: nowrap;} has so far worked for 
 me.

 If you could possibly take a quick look at my css and mark-up, at:

 http://members.distributel.net/~leibson/justified%20text,%20with%20various%20problems.htm

Checking on IE 7, the second case, with nbsp;, works well: the last line is 
and strategy, as desired. I wonder where it does not work. People 
sometimes make the mistake of using nbsp; _in addition to_ a normal space, 
but it needs to be used _instead_ of it - as you are doing: 
andnbsp;strategy.

The problem with the CSS way is that you have
  whitespace: nowrap;
instead of the correct
  white-space: nowrap;
(This is one of the difficult things to remember in CSS: white-space needs 
to have the hyphen, whereas the value nowrap must not have a hyphen.=

 Oh yes:  does nbsp; work in HTML 4.01 Transitional?

Surely. It works in all HTML versions.


Jukka K. Korpela (Yucca)
http://www.cs.tut.fi/~jkorpela/ 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] re. refining tex-align: justify

2007-10-02 Thread David Laakso
Michael Leibson wrote:
 Jukka K. Korpela wrote: 

   
 . . . it is easy to insert a no-break space,. . .  as the entity reference 
 nbsp;, 
 e.g. likenbsp;this? 
 

   
 Similar things can be done in CSS . . . you can write
 span class=nobrlike this?/span
 with
 .nobr { white-space: nowrap; }
 

 Jukka K. Korpela (Yucca)
 http://www.cs.tut.fi/~jkorpela/ 


 Thanks to both you, Jukka, and Philippe, for addressing this problem.

 Jukka, I don't know what I'm doing wrong, but neither nbsp; nor creating
 a span class with {white-space: nowrap;} has so far worked for me.  

 If you could possibly take a quick look at my css and mark-up, at: 

 http://members.distributel.net/~leibson/justified%20text,%20with%20various%20problems.htm
  

  -- I'd be most grateful!

 Oh yes:  does nbsp; work in HTML 4.01 Transitional?

 Thanks!

 - Michael
   





I'd be tempted to cut-in the widows in with a #10 x-acto knife and 
rubber cement; and, dry up the rivers with a sponge.

Regards,

~dL











__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


[css-d] re. refining tex-align: justify

2007-10-02 Thread Michael Leibson
Jukka K. Korpela [EMAIL PROTECTED] wrote: 

Checking on IE 7, the second case, with nbsp;, works well: the last line is 
and strategy, as desired. I wonder where it does not work. 

Aha -- the problem lay in my own misunderstanding!  I'd mistakenly thought that 
by using nbsp; I could get strategy to 
actually remain on the prior line.  Now I see that, of course, it did eliminate 
that widow, by adding the 2nd to last word -- and -- 
to the last line.



The problem with the CSS way is that you have
  whitespace: nowrap;
instead of the correct
  white-space: nowrap;

Thank-you, Jukka -- even though I'd checked and rechecked my CSS, that had 
escaped me!  Now I know!

Thanks, again, for all your help!
- Michael








  Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right 
on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/