In article <MP************************@news.individual.net> ,
Lauri Raittila <la***@raittila.cjb.net> wrote:
in comp.infosystems.www.authoring.stylesheets, Els wrote:
however if I try to add a caption I break the liquid layout. Any
suggestions?
http://locusmeus.com/test/thumbswith...scentered.html
I am trying to avoid using tables at all (except for tabular data). I
guess you could argue photos with captions are tabular, but I'd like to
try the CSS way before falling back to tables.
If you don't like missused tables (shouldn't it be one big table, pics in
one column and captions in other), you can use just CSS:
http://www.student.oulu.fi/~laurirai/www/css/gallery/
Uses same princible, but not real table, and CSS table for Gecko, as it
has many bugs... Less bulletproof. Works in IE, Opera and Gecko (not
necessary all of them, but at least recent.)
Thanks for that Lauri. I tried it based on your method, since you
mention that it works in IE (I can't test IE). I am a little nervous
about the reliability of the changes I made, since I've never had much
luck with display, and especially with display table. I also took out
the vertical centering of the photos, at least for the moment. My
original version is at
http://site.sheltersrus.com.au/gallery.html
and my revised version is at
http://site.sheltersrus.com.au/gallery2.html
Works on a Macintosh in Safari 2, Opera 8.02, and Firefox 1.07. The
differences in display are interesting. Safari seems to align on the
bottom of the photos (all the captions are in a horizontal row).
Firefox does the same, but puts a bright blue link indicator around each
thumbnail (I guess I turn that off like in any link) which neither
Safari nor Opera do. Opera aligns on the top of the photographs (which
actually seems slightly more logical, albeit inconvenient).
Reports on results in different browsers (especially IE versions) would
be most welcome.
--
http://www.ericlindsay.com