[pmwiki-users] Re: Div Markup + Wiki Styles for Image Placement

Patrick R. Michaud pmichaud at pobox.com
Fri Jul 8 19:05:03 CDT 2005


On Fri, Jul 08, 2005 at 04:59:47PM -0700, H. Fox wrote:
> Can I make both of the following
> generate similar XHTML in the wiki page?
> 
>     (:div style="margin:4px; float:left;":)
>     Attach:foo.jpg
>     (:divend:)
>     Some text.
> 
>     >>imageleft<<
>     Attach:foo.jpg
>     >><<
>     Some text.

In a CSS file somewhere, put

   .imageleft { margin:4px; float:left; }

and you're there.  If you want to do it from a configuration file, you
can of course do:

   $HTMLStylesFmt['imageleft'] = " .imageleft { margin:4px; float:left; }\n";

Pm



More information about the pmwiki-users mailing list