[pmwiki-users] apply wikistyle to heading

Patrick R. Michaud pmichaud at pobox.com
Tue Aug 30 09:15:21 CDT 2005


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




More information about the pmwiki-users mailing list