-
Notifications
You must be signed in to change notification settings - Fork 1
Pictures
Pictures are shown with the traditional img tag, and no special styling is applied. There are, however, specification classes (and a special tag case) to handle variations, such as image inlining, centering, applying a shadow or a caption.
-
Traditional pictures are shown using the
imgtag.<img src="picture.jpg" />
-
Inline pictures are shown using the specification class
inline.<img src="picture.jpg" class="inline" />
-
Pictures can be applied a mild shadow using the specification class
shadowed.<img src="picture.jpg" class="shadowed" />
-
Pictures can be centered in their container using the generic specification class
centered.<img src="picture.jpg" class="centered" />
-
Pictures with captions require special attention. They require to be encapsulated in the
figuretag, whereas the caption itself requires thefigcaptiontag alongside theimgtag, which need thecaptionedspecialization class. Captioned pictures can be shadowed and/or centered. If centered, the caption itself will follow the picture margin.Standard picture with caption.
<figure> <img src="picture.jpg" class="captioned" /> <figcaption>Picture caption</figcaption> </figure>
Shadowed, centered picture with caption.
<figure class="centered"> <img src="picture.jpg" class="shadowed captioned" /> <figcaption>Picture caption</figcaption> </figure>