How To Format Figcaption To Not Stretch A Min-width Figure
Solution 2:
I found a solution using inline-tables:
HTML:
<divclass="fig-container"><figureclass="captioned-figure"><imgclass="full-width"src="..."/><figcaptionclass="img-subtitle">
TEXT TEXT TEXT
</figcaption></figure></div>
CSS:
.fig-container{
text-align: center;
}
.captioned-figure{
display: inline-table;
min-width: 50%;
}
.full-width{
display: block;
width: 100%;
height: auto;
}
.img-subtitle{
display: table-caption;
caption-side: bottom;
}
Post a Comment for "How To Format Figcaption To Not Stretch A Min-width Figure"