How to achieve table like rows within container using CSS

Posted by Barry on Stack Overflow See other posts from Stack Overflow or by Barry
Published on 2010-03-18T06:51:24Z Indexed on 2010/03/18 7:01 UTC
Read the original article Hit count: 268

Filed under:

I'm helping an artist maintain her website and have inherited some pretty outdated code. Have moved lots of redundant common code to include files and am now working on moving from inline styles to more CSS-driven styles.

For the gallery pages, e.g. http://artistsatlaketahoe.com/abstract.html, a lot of inline styling is used to force the current layout. My preference would be to replace this entirely with CSS that presents the following table-like layout within the "content" div:

[image] [image descriptives and purchase button]
[image] [image descriptives and purchase button]
[image] [image descriptives and purchase button]

I'd like to middle-align the image descriptives & purchase button relative to the image if possible. And then apply some padding above and below each row to stop using
tags for vertical spacing.

Any ideas how to create a div that I can use to get this kind of layout?

Thanks!

© Stack Overflow or respective owner

Related posts about css-layout