On Dec 17, 2014, at 8:08 AM, Jukka K. Korpela <[email protected]> wrote:
>> The simplest approach is to put your poetry in a `div` element, set some
>> suitable width for it, and set its left and right margin to auto:
>
> <style>
> .poem {
> width: 20em; /* tune as needed
> margin-left: auto;
> margin-right: auto;
> }
> </style>
> <div class=poem>
> </div>
>
> If you don’t want to set a fixed width but let the width be as needed for the
> longest line, then you need something more complicated. Please specify if
> this is the case.
>
> Yucca
>
Just tried that and works beautifully. Thanks. BUT haikus are often predictable
as far as size is concerned. So if I had to use a poem which was more
difficult, I would love to know the more complicated way. Thank in advance.
[email protected]
OS X 10.10
______________________________________________________________________
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/