Example tag

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

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?

Sep 9, 2008 at 12:34 AM

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>