Photo Gallery. What is best practice? List or Divs?

Photo Gallery. What is best practice? List or Divs?

am 28.01.2008 14:07:52 von Ed

I know some HTML and CSS and want to use these tools, avoiding the use
of tables, to set up a gallery of thumbnail images which I can click on
to see the full sized image.

From what I read here and elsewhere, there seems to be two approaches:

One is to create a basic unordered list of thumbnails (and any
associated text) and float these.

The second, is to put each thumbnail within its own div (with associated
text) and float these.

Is there any significant advantages/disadvantages to using the list
approach to using the div approach?


Many thanks,
Ed

Re: Photo Gallery. What is best practice? List or Divs?

am 28.01.2008 14:21:58 von Andy Dingley

On 28 Jan, 13:07, Ed wrote:

> Is there any significant advantages/disadvantages to using the list
> approach to using the div approach?

No, absolutely none. For any "significant" advantage at least.

What _is_ significant is that a sequence of floated boxes (either way
you describe) has better fluid behaviour than

markup.