[pmwiki-users] leading spaces switch for 2.2.0 (somewhat important)

Patrick R. Michaud pmichaud at pobox.com
Sat Mar 24 01:32:51 CDT 2007


On Fri, Mar 23, 2007 at 09:49:08PM -0400, Ben Wilson wrote:
> In terms of preventing over-long lines, I would recommend the trusted
> "overflow: auto;" CSS, which creates a scroll bar when the text width
> exceeds the block width.
> 
> pre {  overflow: auto; }

Trusted?  Alas, "overflow: auto;" has never been trustworthy for me --
it has afew quirks with it.  At least under Firefox 1.5.0.9/Linux and 
Firefox 2.0/Linux, using overflow:auto causes the text to the right 
to be chopped off (with no scrollbar available to display it).

In order to get the scrollbar to display in Firefox, one has to 
also use padding-bottom:1px; in the style.

In IE 6 and 7, the scrollbars hide the last line of text, also
requiring a padding-bottom value.  They also require a fixed width
to be specified for the containing element, otherwise they still
cause the page to stretch to be as wide as the text elements.

See [1] for the original discussion, and I just verified this
independently using BrowserCam [2].

Thanks for the comments!

Pm

[1] http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/28369/focus=28379
[2] http://www.browsercam.com/public.aspx?proj_id=334357




More information about the pmwiki-users mailing list