I'm wondering if it makes sense
build a layout like this (a simple gallery)
If the reply is yes could give me a little
example of the mark up?
Thanks in advance.
Well, the middle part looks like a table-- kinda forum-y.
*edit the advantage of a table for the upper/main part of the page is you can semantically make everyone in the row, but also everyone in the column related (using scope or headers attributes, in a real table).
The bottom part, most viewed photos, should prolly either be a list or just a sequence of floated images. Wrapping each image+caption in a div (or something that made sense) and giving them all the same min-height and width (this depends on how different each images' dimensions could be) and floated can giev you exactly the same look.
The floats will bunch up weird if the divs don't all have the same height or min-height. If the heights are radically different between photos then a display: table setup might work better.
A very simplified setup. Somewhere I have an actual gallery setup somewhere.
You can also try Gary's display: inline-block setup. http://gtwebdev.com/workshop/layout/...ck-gallery.php
*edit a definition list should be reserved for key-value pairs. So if you had
then it could maybe make sense to use one.
I agree on the definition list, since I consider it the most semantic and most extensible, for example:
Code html4strict:<dl class="images"> <dt><img src="..." width="..." height="..." alt=""> <dd class="caption">... <dd class="author"><cite>...</cite> <dd class="date">0000-00-00 </dl>
<p<strong<abbr/HTML/ 4 teh win</>
<>In Soviet Russia, website codes you!
Thanks to everybody
Last edited by whisher; Feb 20, 2009 at 05:03.