Skip to content

Instantly share code, notes, and snippets.

View Emmarie-Ahtunan's full-sized avatar
:octocat:

Emily Marie Ahtúnan Emmarie-Ahtunan

:octocat:
View GitHub Profile
@Emmarie-Ahtunan
Emmarie-Ahtunan / responsive-figure-figcaption-output.css
Created December 7, 2021 16:37 — forked from mistergraphx/responsive-figure-figcaption-output.css
Responsive figure and figcaption elements responsive-figure-figcaption
/* Responsive figure and figcaption elements
How to display a figcaption element,
without setting a with = to image with
Source and exemple: <http://stackoverflow.com/questions/6534473/how-can-i-make-the-width-of-my-figcaption-match-the-width-of-the-img-inside>
.basic - display the figcaption under the image
.side-by-side - display the figcaption on the right