Styling for figure and figcaption in CSS


Enhance the presentation of images and their captions.

Source Code

figure {
    margin: 0;
    padding: 0;
    display: table;
}
figcaption {
    display: table-caption;
    caption-side: bottom;
    text-align: center;
    font-style: italic;
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments