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

Patrick R. Michaud pmichaud
Fri Jan 7 05:13:16 CST 2005


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; }

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').

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]]||
    // ...

Pm



More information about the pmwiki-users mailing list