Posted by Stefan Rybacki on 10/10/13 11:39
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
chris schrieb:
> I am displaying various lists of names from a database such as;
>
> Mr C Smith, Mrs A Bell etc.
>
> If the list is longer than the width of the page I end up with;
>
> Mr C Smith, Mrs A Bell, Mr J
> Black
>
> How can I bring Mr J Black unto a new line automatically. I've included
> the code I am using below.
>
Are we talking about HTML output?
If yes use in your CSS definition:
nobreak {
white-space: nowrap;
}
and surround your names with <nobreak>name here</nobreak>
Regards
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFD6yiNyeCLzp/JKjARApYVAJ96Iwv+Eo1XuWyb1wzbnHhrIm/FDACeKXCi
J4/8o0y7oYmzskTM2IyxIN0=
=uXDU
-----END PGP SIGNATURE-----
[Back to original message]
|