[pmwiki-users] Indent multiple paragraphs at once?

John Rankin john.rankin at affinity.co.nz
Wed Aug 23 20:44:55 CDT 2006

On Thursday, 24 August 2006 12:55 PM, Kathryn Andersen <kat_lists at katspace.homelinux.org> wrote:
>On Wed, Aug 23, 2006 at 09:43:06PM +0100, Hans wrote:
>> On 22/08/06, pmwiki at 911networks.com <pmwiki at 911networks.com> wrote:
>> > >
>> > Is there a way to have a scroll if it is more than 65% of the
>> > width?
>Well, one could set the overflow CSS property:
>overflow: auto;
>which will add scrollbars if the contents are wider and/or taller than
>the designated width.
>I have a vague idea that different browsers react differently to that
>property, though.

from memory, here are some of the issues with overflow:auto

- specify padding-bottom:0.5em;

  otherwise a certain browser will obscure the last line when
  it inserts a horizontal scroll bar

- watch out for width:xx%;

  some browsers (can't remember which) are ok with a width in
  px but not a % width

But any kind of overflow is better than long preformatted text lines.

An example css statement is:

pre.preformatted { width:650px; overflow:auto; padding-bottom:0.5em; }

John Rankin

More information about the pmwiki-users mailing list