[Pmwiki-users] I've got a leaky table :-)

John Coxon john
Fri Jan 7 05:48:04 CST 2005


On Jan 7, 2005, at 7:13 AM, Patrick R. Michaud wrote:

> On Fri, Jan 07, 2005 at 06:42:20AM -0500, John Coxon wrote:
>> Hi folks,
>>
>> I thought I'd hit on a good way to get my SideBar content to right
>> align by using a simple table for the SideBar content. It works fine
>> -except- when a page ends with a simple table. Then the page table
>> formatting "leaks" into the SideBar table :-( How can I plug this  
>> leak?
>
> Does the right-alignment need to be done in wiki markup (simple  
> tables)?
> If not, then you may be able to achieve the same effect without tables
> via CSS -- just create pub/css/local.css with the line:
>
>     .column1box { text-align:right; }

That's already in my farm css. I reluctantly went to simple tables to  
get rid of the bullets.
>
> Or, equivalently, you can add the following to config.php:
>
>     $HTMLStylesFmt[] = ".column1box { text-align:right; }\n";
>
> See http://www.pmwiki.org/wiki/Test/SideBarRight for an example of how
> this might work (the pmwiki skin uses '#wikileft' instead of  
> '.column1box').

I see no bullets. How so?
>
> However, if you really need tables....
>
>> And a couple examples of "leaky" pages:
>> http://www.coxontool.com/collectanea/index.php/PmWiki/SimpleTables2
>> http://www.coxontool.com/collectanea/index.php/PmWiki/ 
>> TextFormattingRules
>
> The problem isn't that the above pages end in simple tables, but rather
> that their markups change/set the simple table attributes via lines
> such as
>
>     || border=1 width=350 cellspacing=10 align=center
>
> and this carries over to the tables in the sidebar. The quick fix is to
> force the attributes back to something sane in the sidebar:
>
>     || border='0'
>     || '''Classes'''||
>     || [[Class.FineArts|Fine Arts]]||
>     // ...
>
Blush! I did that in my other field's Sidebars but forgot to update  
this one.

John




More information about the pmwiki-users mailing list