Vladimir Tokmakov
Picture blocks with captions September 26, 2008 |
|
Task: | to create float blocks whose height and width are tied to the dimensions of a picture and its caption. |
||
The aim here is to distribute the content as evenly as possible across available screen space (taking into account the abundance of screens and display resolutions).
In this example we will look at creating float blocks whose height is the sum of the image height in pixels and the text height in em, while width is fixed both in pixels and in em.
|
|