|
Posted by Greg N. on 03/14/06 01:06
Coretys wrote:
> I tried to make sure that my header gets split at an exact point in the
> middle, and not only 1 charcter on a new line. That happens with
> Japanese, because they don't use spaces at all. is there a way to
> accomplish this without using the <nobr> tag? I get an erro message,
> when I check the page on W3C.
I'm not sure what follows is a clean, side-effect free approach, but it
may work for you: Write your characters in groups, and put spaces where
line breaks are allowed. For example:
<h1 class=tie>ABC DEFG HIJ</h1>
Use CSS to make te spaces invisible:
..tie {word-spacing:-.25em;}
This will be rendered as ABCDEFGHIJ, but line breaks, if necessary, will
only occur between C-D or G-H.
--
Gregor mit dem Motorrad auf Reisen:
http://hothaus.de/greg-tour/
[Back to original message]
|