You are here: Re: How to render a heading as two lines? « HTML « IT news, forums, messages
Re: How to render a heading as two lines?

Posted by BootNic on 03/23/06 04:24

> "Greg N." <yodel_dodel@yahoo.com> wrote:
> news:dvq74m$161$1@online.de....
>
> Suppose you need a heading <h1>Huddersfield Canal Society</h1> to be
> rendered as two lines. The result you want to see is:
>
> Huddersfield
> Canal Society
>
> It can be fudged by marking it up as
>
> <h1>Huddersfield<br>Canal Society</h1>
>
> or
>
> <h1>Huddersfield</h1>
> <h1>Canal Society</h1>
>
> But what would you suggest, that complies with HTML 4.01 strict,
> and is politically correct with respect to style/content separation?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
</head>
<body>
<h1 style="white-space:pre;">Huddersfield
Canal Society</h1>
</body>
</html>

--
BootNic Wednesday, March 22, 2006 9:23 PM

Humor is just another defense against the universe.
*Mel Brooks*

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация