Re: [css-d] Center an image

2012-12-20 Thread David Hucklesby
On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran 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 are inline by default, and

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 Tom Livingston
On Thu, Dec 20, 2012 at 12:11 PM, Hakan Kirkan 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 > Miami, FL > >

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 < br...@draftingservices.c

Re: [css-d] Center an image

2012-12-20 Thread Tom Livingston
On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran 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 require widths to be

Re: [css-d] Center an image

2012-12-20 Thread Tom Livingston
On Thu, Dec 20, 2012 at 12:01 PM, Brian M. Curran 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 margin:0 auto 0 auto;

[css-d] Center an image

2012-12-20 Thread Brian M. Curran
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 __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mai

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 >> vertical

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 bac

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

2008-04-30 Thread S. Woodside
> >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 in advance > what > >the size

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

[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 image