]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - doc/bugs/img_vs_align.mdwn
diagnosis: probably broken browser?
[www/ikiwiki.git] / doc / bugs / img_vs_align.mdwn
index 9ed5e9e19bea7f3e4db345f43116195a71e0c238..c70f4d5efef2c303b259243e2399d1a6d57aa3aa 100644 (file)
@@ -4,3 +4,16 @@ embedded as `<p><img ...></p>`.  That's at least what I see on
 <http://www.bddebian.com:8888/~hurd-web/hurd/status/>.  On the other
 hand, CSS is supposed to be used instead, I guess.  (But how...  I forgot
 almost of my CSS foo again ;-) it seems.) --[[tschwinge]]
+
+> [[!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.
+>
+> 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]]
+> -- [[Jon]]
+
+> Contrary to all of the above, html does not care about P tags when
+> floating an image to the left or right via align. Proof:
+> <http://kitenet.net/~joey/pics/toomanypicturesofjoey/>, where the image
+> is in its own paragraph but still floats. Also, I re-modified a local
+> copy of the hurd page to enclose the image in a P, and it still floats.
+> 
+> Tested with Chromium and Firefox. --[[Joey]]