[pmwiki-users] preformatted text fixed width
DaveG
pmwiki at solidgone.com
Sun Jan 18 10:57:02 CST 2009
The main issue is that code tags are defined as:
code.escaped {
white-space:nowrap;
}
What this means is that the line will be as long as necessary to fit the
entire text, without wrapping. The side effect of this is that now the
entire .rightColumn is the same width as the 'code', so even setting
lesser widths on other elements won't change the rightColumn width.
Normally the solution is to add "overflow: auto", to add a scrollbar to
the non-wrapped lines. In this case that doesn't work, and I didn't have
time to work out why. (Strangely adding "overflow: auto; white-space:
nowrap" to .vspace does force the scrollbar -- although it has the
significant unwanted effect of putting a scrollbar on every .vspace
paragraph :) ) I *suspect* this has something to do with using tables --
but I have no evidence for that other than inexperience with tables.
pre tags seem to work fine, so one thing you might try is defining code
to be the same as pre, on line 137 of rounded.css:
pre, code {
btw, adding a width to wikitext rather than rightColumn forces the
rightColumn width.
Summary: Add a width to .wikitext, and make code the same as pre.
~ ~ Dave
Maria McKinley wrote:
> On Sat, Jan 17, 2009 at 5:16 AM, Radu Luchian <radu at monicsoft.net> wrote:
>> may want to add width: 809px (top-left or 969-160) to
>> .rightColumn {
>> in rounded.css; if you notice, it's the whole column that expands to the
>> whole page width, not only the pre areas. But those are visible because they
>> have a defined background.
>>
>> For css and other development, try using Firefox with the Firebug add-on.
>>
>> Cheers,
>> Radu
>
> This didn't work unfortunately, although I must admit I didn't
> understand the bit in parenthesis. So even the extreme of
>
> .rightColumn {
> padding: 10px 10px 10px 10px;
> width: 100px;
> }
>
> made no difference in the page. I'm also a bit confused about what you
> mentioned about the whole column expanding, since if you look at this
> page:
>
> http://www.shadlen.org/~maria/pmwiki/Work/Install
>
> which doesn't have any preformatted text, the text acts as expected,
> always moving to fit the width properly. It seems to be the presence
> of any preformatted text that screws things up. Any other advice? I'm
> going to try installing the Firebug add-on now.
>
> cheers,
> maria
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list