To get figure captions, I followed the advice of creating a figure DIV class, and then a figurecaption paragraph class.
So each fig looks like:
Code: Select all
<div class="figure">
<img src="../../imagepath.jpg" style="visibility: visible;width: 266px;height: 86px;border-top-style: solid;border-top-width: 1pt;border-bottom-style: solid;border-bottom-width: 1pt;border-left-style: solid;border-left-width: 1pt;border-right-style: solid;border-right-width: 1pt;" alt="RackConfig">
</img>
<p class="FigureCaption" MadCap:autonum="Figure 1-1 ">figure caption text goes here</p>
</div>
Code: Select all
div.figure
{
text-align: center;
margin: 10px;
}
p.FigureCaption
{
mc-auto-number-class: FigureNum;
mc-auto-number-format: 'CF:Figure {chapnum}-{n+} ';
padding-bottom: 10px;
font-weight: lighter;
color: #0e0000;
text-align: center;
font-family: 'Lucida Sans';
font-size: 8pt;
}
However, it has the limitation that I can't wrap text around it. For smaller figures, I'd like to wrap text. So I've defined a "half width" figure div in hopes having the text wrap around it.
Code: Select all
div.figure-half {
text-align: center;
clear: none;
float: right;
margin: 0px;
width: 50%;
display: block;
}
Or is there a better practice for doing half-width images?