Abs <abs2@yahoo.com>:[color=blue]
>
> What do you mean ? Do I have to use the boring classical photo per page
> approach ? What is wrong with using javascript ? My gallery is inspired
> in the one I saw in the projectseven.com site[/color]
You can do Javascript assisted image galleries, but you did it wrong, i.e.
not usable by people with Javascript disabled (there are many and not all
of them have a choice). I'll try to outline an approach, that degrades as
gracefully and uses as less mark-up as possible:
.fullsize {visibility: visible}
// Read with care, I'm by no means a
JS expert.
addEvent(
document.getElementsBySelector("ul.class>li>a"),
"click", function() {
document.getElementsByClass("photo").style.visibil ity="hidden";
document.getElementById(this.href.substring(1, this.href.length-1)
).style.visibility="visible"; // or make two classes and switch
}, true);
// See <http://webdesign.crissov.de/Scripting/> for getElementsByClass(),
// getElementsBySelector() and addEvent(). There are other ways to do it.
<ul class="thumbs">
...
<li><a href="#img12"><img href="12.thumb.jpeg" alt="..."></a></li>
...
</ul>
...
<div class="photo" id="img12">
<img src="12.jpeg" alt="..."><br>Caption
</div>
...
But note, that not everybody wants to load all full-size images.
[color=blue]
> I only wanted to know how to do a thing with CSS that can be easily done
> with only HTML tables.[/color]
Tables are not without pitfalls either. Judging fom your code you seemed
to know that block boxes are centered with auto-margins and inline boxes
with "text-align: center" for their containing box, i.e. parent. You just
put in too much else, which made it not work.
--
"Space may be the final frontier,
but it's made in a Hollywood basement."
Red Hot Chili Peppers - Californication