Positioning images
Whichever technique you use for bitmap images, you can position most of them using the HTML5 figure
and figcaption
elements. They are governed by two sets of classes:
- Classes that apply position (
image-right
,image-left
,image-centre-huge
) - Classes that apply size (e.g.
small
,medium
,large
)
You pick a class from each category to put an image where you want and at the size you want e.g. <figure class="image-right small">...
would put your image to the right of the text, at a width of 180px. See the examples on this page.
The image classes and widths defined in the style sheet are:
icon
: 80pxtiny
: 100pxsmall
: 180pxmedium
: 220pxlarge
: 260pxxlarge
: 300px
Note that you won't be able to use these classes if you use the w
descriptor with srcset
(see Bitmaps with HTML5).
Finally here is an image that spans 90% of the page (.image-centre-huge
).