From: <r.n...@el...> - 2004-02-15 10:23:37
|
Hi, I'm using reStructuredText with HTML writer output. I'd like to render horizontally centered image without any text around it. How can I do it, please? The second question is about .. class:: (or image :class:, respectively). When I define class 'bordered' (1px border around image), RST output is: class="bordered bordered". Why? For example (asterixes are RST delimiter from other text): *************************************************** Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam in sem. Cras eget lorem. .. image:: http://www.lipsum.org/images/lorem.gif :class: bordered :align: center Nulla et sem a erat posuere pellentesque. Nulla id sem a enim volutpat semper. Sed vitae leo. ***************************************************** Is rendered as <div class="document"> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam in sem. Cras eget lorem.</p> <p><img align="center" alt="Lorem Ipsum" class="bordered bordered" src="http://www.lipsum.org/images/lorem.gif" /></p> <p>Nulla et sem a erat posuere pellentesque. Nulla id sem a enim volutpat semper. Sed vitae leo.</p> </div> I think, I need the second paragraph to be 'align="center"' or to have some specific 'centered' class, which I can define in stylesheet. -- thx Radim |