Sent by Lowell Allen on 19 July 2004 16:04
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
> of
> 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
> usually
> 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
> in
> height and width. If I'm not mistaken, there is no center or middle
> property
> 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.
--
Lowell Allen
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/