[pmwiki-users] InlineReplacements Problem

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 21 15:26:37 CST 2005


On Mon, Feb 21, 2005 at 12:28:46PM -0700, Manish Ranade wrote:
> hi,
> 
> I am trying to use following InlineReplacements for one of our wiki sites.
> 
> $InlineReplacements['/^=weather/'] = "<div align='center'>
> <script
> src='http://voap.weather.com/weather/oap/78401?template=GENXH&par=null&unit=0&ke
> y=98d26941054e67bb1de0b3d59c5af7a0'></script>
> </div>";
> 
> But, this doesnt work properly for the sites which share single wiki
> installation.
> 
> For Ex.
> http://www.downtowncorpuschristi.com/wiki/DMD/Test
> (it does'nt show up properly)
> I have tried for several others too.
> 
> I am not sure what the problem is?

I think the problem is in your CSS stylesheet at 
http://www.downtowncorpuschristi.com/wiki-content.css -- you have a
CSS rule listed as:

    table.propidx th,td {
        padding: 2px;
    }

This is adding 4 pixels of horizontal and vertical space to
every <td> cell in the document that isn't overridden by a
more specific rule.  As a result, the table containing the
weather information is becoming larger than what weather.com
expects it to be, and it's being displayed wrong.

You probably meant to write:

    table.propidx th, table.propidx td {
        padding: 2px;
    }

to give 2px padding to <td> elements only within <table class='propidx'>.
However, since the rule may be currently affecting a lot of <td> cells 
outside of <table class='propidx'>, you may have a bit of cleaning up
and adjusting to do in your other tables if you fix this now...

Pm



More information about the pmwiki-users mailing list