explanation: whitespace surrounding your use of the IMG tag
[ikiwiki.git] / doc / bugs / img_vs_align.mdwn
1 The *[[ikiwiki/directive/img]]* directive allows for specifying an
2 *align* parameter -- which is of limited usability as the image is
3 embedded as `<p><img ...></p>`.  That's at least what I see on
4 <http://www.bddebian.com:8888/~hurd-web/hurd/status/>.  On the other
5 hand, CSS is supposed to be used instead, I guess.  (But how...  I forgot
6 almost of my CSS foo again ;-) it seems.) --[[tschwinge]]
7
8 > [[!img logo/ikiwiki.png align=right]]The [img tag doesn't create P tags](http://git.ikiwiki.info/?p=ikiwiki;a=blob;f=IkiWiki/Plugin/img.pm;h=32023fa97af8ba8e63192cacaff10a4677d20654;hb=HEAD), but if you have surrounded the img directive with newlines, they will result in paragraph tags.
9 >
10 > I've edited the URL you provided to demonstrate this -- hope you don't mind! I've also added an inline, right-aligned image to this page.[[!tag done]]
11 > -- [[Jon]]