css - Doxygen image borders -
i have project configured documentation generation doxygen. documentation involves lot of figures clashes background. possible add border figures in document? css objects should change? figures inserted using command:
![ ](01_demo.png)
resulting html:
<div class="image"> <img src="01_demo.png" alt="01_demo.png"/> <div class="demo caption">demo caption text</div></div>
there class in css file:
.image { text-align: center; }
i can add border it, in case caption have it. can somehow border around image itself?
solution: i've added custom /figure tag doxygen configuration file:
aliases += figure{2}="<div class="figure">![\2](\1)</div>"
changes css file:
.figure img { text-align: center; border: 1px solid #879ecb; }
usage:
\figure{demo.png, demo caption}
yes possible following code
.image img { border: 1px solid #000; }
if want space between border , image, add padding.
here fiddle try: https://jsfiddle.net/6ou62urk/
Comments
Post a Comment