Re: [css-d] center an image horizontally inside an overflow: hidden

2008-05-01 Thread David Hucklesby
On Wed, 30 Apr 2008 18:50:04 +, Martin Sammtleben wrote: At 14:35 -0400 30/4/08, S. Woodside wrote: Thanks for the link. I tried using background-image center center -- unfortunately this method doesn't meet my second criteria which is that the image be scaled to fit vertically. There

Re: [css-d] center an image horizontally inside an overflow: hidden

2008-04-30 Thread Martin Sammtleben
At 01:47 -0400 30/4/08, S. Woodside wrote: I have a div absolutely positioned with overflow: hidden, and I have an image, of unknown pixel size, displayed inside it. I wish for the image to be cropped on the left and right, and sized to fit vertically. A key element here is that I will not know

Re: [css-d] center an image horizontally inside an overflow: hidden

2008-04-30 Thread Martin Sammtleben
At 14:35 -0400 30/4/08, S. Woodside wrote: Thanks for the link. I tried using background-image center center -- unfortunately this method doesn't meet my second criteria which is that the image be scaled to fit vertically. There does not appear to be any way to scale the image when using

[css-d] center an image horizontally inside an overflow: hidden

2008-04-29 Thread S. Woodside
I have a question similar to one once posed elsewhere: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_22748366.html I have a div absolutely positioned with overflow: hidden, and I have an image, of unknown pixel size, displayed inside it. I wish for the