On Jul 18, 2004, at 11:55 AM, matt mikulla wrote:
> Hello. I was looking over Eric Meyer's more on css. He has a nice way
> displaying images in thumbnail view. This would work for me, except
> most of
> my images vary in width and height, depending on how I crop them. I
> optimize them so they are either 100px wide, or 100px tall.
> Is there any way to adapt his div method to work for images that vary
> height and width. If I'm not mistaken, there is no center or middle
> for the div.
I haven't read that "More on CSS" chapter yet, but to center images
both vertically and horizontally you can assign each image as a
background image for a specific div, and declare "background-position:
center". If you want the images to be links, you'll need to specify
"cursor: hand" to get Windows IE6 to play nice.
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/