|  | Posted by Jukka K. Korpela on 05/05/07 13:29 
Scripsit Ben C:
 >> Alternatively, <nobr>...</nobr> could be used. It will make people
 >> who swear by standards upset, and it will make browsers honor the
 >> request not to break the line, even when CSS is disabled.
 >
 > In that case why not go back to <font>, <center> etc. for when CSS is
 > disabled?
 
 Because writing <font face="Constantia, Georgia, sans-serif">...</font>
 inside each block in each document where you wish to use it is more
 cumbersome than writing, say, body { font-family: Constantia, Georgia,
 sans-serif; } just once in a stylesheet. Compare this with the difference
 between
 <nobr>A-1</nobr>
 and
 <span style="white-space: nowrap">A-1</span>
 (where the author misspells white-space or nowrap every other time :-) ).
 
 Similarly, using h1 { text-align: center; } in a site-wide style sheet is
 just _simpler_ than using <center><h1>...</h1></center> or even <h1
 align="center">...</h1>.
 
 --
 Jukka K. Korpela ("Yucca")
 http://www.cs.tut.fi/~jkorpela/
  Navigation: [Reply to this message] |