Example tag

Topics: Developer Forum, User Forum
Sep 8, 2008 at 8:29 PM
I am trying to center an image inside an Example tag, like this:
<example>
<code>
...
</code>
<para><center><img src="MainWindow.jpg" /></center></para>
</example>

The text and the image appears well, but the image is not centered. I tried some variations of the above code but to no avail. Are there any limitation on what HTML tags can be used inside the example tag?

Regards
Coordinator
Sep 8, 2008 at 11:34 PM

The alignment of the containing example div is probably affecting it.  Rather than use "<center>", you might try using a "<div>" instead:

<div style="width: 100%; text-align: center;"><img src="xyz.jpg"></div>

Eric