[pmwiki-users] Re: apply wikistyle to heading

Karl Loncarek dh2mll at web.de
Tue Aug 30 09:39:28 CDT 2005


"Patrick R. Michaud" <pmichaud at pobox.com> wrote in
news:20050830141521.GA10624 at host.pmichaud.com: 

> On Tue, Aug 30, 2005 at 02:06:26PM +0000, Karl Loncarek wrote:
>> Hi, 
>> is there a way to apply a style, in my case "margin-top:0;" to
>> headings. 
>> 
>> This style has to be applied directly, i.e. the resulting code should
>> look like "<h2 style="margin-top:0;">Some Heading</h2>", defining it
>> in a CSS-file or in the header is not enough.
>> 
>> The only way to achieve this is to rewrite the heading markup, but I 
>> wanted to avoid this.
>> 
>> !!%margin-top=0px%Some Heading
> 
> Try 
> 
>     !! %block margin-top=0px% Some Heading
> 
> Or you can create a shortcut:
> 
>     %define=mt0 block margin-top=0px%
> 
>     !! %mt0% Some Heading
> 
> Pm
> 

That's it, Thanks. The "block" stuff was the key.

-- 
Bye
Karl (aka Klonk)





More information about the pmwiki-users mailing list