Re: [css-d] Center an image

2012-12-20 Thread Tom Livingston
On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran br...@draftingservices.com wrote: Hi! I have an image that I want to center on a webpage. It seems there is no float:center command? What would be the best way to center it? Thanks, Brian __ Is setting it to display:block; and using

Re: [css-d] Center an image

2012-12-20 Thread Tom Livingston
On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran br...@draftingservices.com wrote: Hi! I have an image that I want to center on a webpage. It seems there is no float:center command? What would be the best way to center it? Thanks, Brian ___ It will also

Re: [css-d] Center an image

2012-12-20 Thread Hakan Kirkan
Brian, Check this out. It may solve your problem. http://www.hitseeker.com/css/css-float-center-for-a-variable-width/ Hakan KIRKAN IT Manager http://miamirealestateinc.com Miami, FL On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran

Re: [css-d] Center an image

2012-12-20 Thread Tom Livingston
On Thu, Dec 20, 2012 at 12:11 PM, Hakan Kirkan ad...@jump2top.com wrote: Brian, Check this out. It may solve your problem. http://www.hitseeker.com/css/css-float-center-for-a-variable-width/ Hakan KIRKAN IT Manager http://miamirealestateinc.com

Re: [css-d] Center an image

2012-12-20 Thread Brian M. Curran
Awesome, thanks Hakan! Sincerely, Brian From: Hakan Kirkan [mailto:ad...@jump2top.com] Sent: Thursday, December 20, 2012 12:12 PM To: Brian M. Curran Cc: css-d@lists.css-discuss.org Subject: Re: [css-d] Center an image Brian, Check this out. It may solve your problem. http

Re: [css-d] Center an image

2012-12-20 Thread David Hucklesby
On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran br...@draftingservices.com wrote: Hi! I have an image that I want to center on a webpage. It seems there is no float:center command? What would be the best way to center it? Thanks, Brian A bit late to the parade, but I would note that images

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