This project has moved. For the latest updates, please go here.

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:
<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 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>