Vitali Doudko wrote:

> Hello,
>
> First of all this is my very first post here, so please forgive
> me for possibly being off on something.
>
> I got a CSS layout question in regards to wrapping of nested
> DIV elements. How can I make sure that a set of images each
> placed in a DIV element wraps inside of a parent DIV like those 
> images would without a div around them? The reason I want to 
> wrap each image in a div is because I would like to have 
> description under each one of the images.
> Maybe there's another way of adding image descriptions without 
> having to use tables. Please enlighten me if that's the case.

I recently updated a testcase - feel free to study the code :-)
http://locusmeus.com/test/thumbswithcaptionslistcentered.html
(links image and caption separately)
http://locusmeus.com/test/thumbswithcaptionslistcenteredcombo.html
(links image and caption together)

> Below is the code in its simplest form, plus you can go to
> http://www.p1x44r.com/journal/view.php?id=imstillalive
> <http://www.p1x44r.com/journal/view.php?id=imstillalive>  to
> view the original. The code below is by no means final as I 
> keep playing with it, I just pasted what I had there at the 
> moment.

[snip]

> .imageholder {
> display:table-cell;
> width:200px;

If you don't care about centering, you can just float the
imageholders. Just make sure they're all the same height, even
when fonts are enlarged, to avoid stacking.

-- 
Els
http://locusmeus.com/
http://locusoptimus.com/ 

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to