C H A P T E R  9

Create Collages and Galleries

Static collages and galleries are popular ways of displaying several images (in addition to the rollover gallery described in Chapter 2). Collages are more decorative and normally have no captions. Gallery images usually require captions; these can be added using CSS or by using the new HTML5 <figure> tag. However, this last method requires the use of some JavaScript to enable IE 7 and IE 8 to understand the <figure> tag.

Prior to the launch of CSS in 1998, groups of pictures were arranged in a table. This resulted in a great deal of HTML markup. Tables are now deprecated and CSS is used to easily create rows and columns of pictures with much less HTML markup. Web designers naturally tend to think ...

Get Practical HTML5 Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.