I am writing a doc file in doxygen, and I included an image by doing
\image html screenshots/enabled.png "caption"
This shows my enabled.png image on the generated documentation. However, I would like the image to be aligned to the left (since the rest of the documentation is that way). Is there any way to do this in doxygen without doing it with inline html or css?
Using the following HTML syntax works on Doxygen 1.8.6 (tested with Firefox 66):
/*! \mainpage Test
*
* <img src="my-image.jpg" align="left">
* <div style="clear: both"></div>
*
* This is a test page.
*
*/
Doxygen wraps the image in a <div class="image">
, but the align
property overrides centering. The extra clearance <div>
is added to avoid having the following text written to the right of the image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With