From: <mi...@us...> - 2009-11-11 12:05:42
|
Author: milde Date: 2009-11-11 13:05:10 +0100 (Wed, 11 Nov 2009) New Revision: 6194 Modified: trunk/docutils/docutils/writers/html4css1/html4css1.css Log: Rule to center-align an image that works without enclosing <div>. Modified: trunk/docutils/docutils/writers/html4css1/html4css1.css =================================================================== --- trunk/docutils/docutils/writers/html4css1/html4css1.css 2009-11-11 12:00:17 UTC (rev 6193) +++ trunk/docutils/docutils/writers/html4css1/html4css1.css 2009-11-11 12:05:10 UTC (rev 6194) @@ -158,6 +158,12 @@ float: right ; margin-left: 1em } +img.align-center, .figure.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + .align-left { text-align: left } |