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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.