Re: [css-d] centering an image in a sidebar

2011-12-08 Thread David Laakso
On 12/8/11 10:26 PM, "G.Sørtun" wrote: On 07.12.2011 01:23, Lisa Frost wrote: On this site: http://www.flyingwithdiabetes.com/ the image of the book in the side bar needs to be centered. One way to achieve auto-centering of images... p .bookcover { display: block; margin: 10px auto; position

Re: [css-d] centering an image in a sidebar

2011-12-08 Thread G.Sørtun
On 07.12.2011 01:23, Lisa Frost wrote: On this site: http://www.flyingwithdiabetes.com/ the image of the book in the side bar needs to be centered. One way to achieve auto-centering of images... p .bookcover { display: block; margin: 10px auto; position: relative; left: -2px; } ...where the

[css-d] centering an image in a sidebar

2011-12-08 Thread Lisa Frost
On this site: http://www.flyingwithdiabetes.com/ the image of the book in the side bar needs to be centered. It is centered at the moment because i fudged it by using vspace and hspace but i want to learn how to center it using css. I have tried targeting: #sidebar p .bookcover with margin: 10px

Re: [css-d] Centering an image

2006-07-29 Thread Indranil Dasgupta
Gunlaug Sørtun wrote: > Indranil Dasgupta wrote: > > >> http://www.psdspy.com/britney_spears/1487.html >> > > >> I need the shadowed image to be aligned in the center, but can't seem >> to find a way to do it. Maybe because the container is float: left; >> Can someone please help me. >

Re: [css-d] Centering an image

2006-07-29 Thread [EMAIL PROTECTED]
Why float left? just use margin: auto in the flow -- Joel Goldstick www.columbuswebmakers.com __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com

Re: [css-d] Centering an image

2006-07-29 Thread Gunlaug Sørtun
Indranil Dasgupta wrote: > http://www.psdspy.com/britney_spears/1487.html > I need the shadowed image to be aligned in the center, but can't seem > to find a way to do it. Maybe because the container is float: left; > Can someone please help me. Use ordinary block-centering. Add / adjust to..

Re: [css-d] Centering an image

2006-07-29 Thread Indranil Dasgupta
Dave Goodchild wrote: > On 29/07/06, Indranil Dasgupta <[EMAIL PROTECTED]> wrote: > >> Hello, >> Can someone please take a look at >> http://www.psdspy.com/britney_spears/1487.html >> I need the shadowed image to be aligned in the center, but can't seem to >> find a way to do it. Maybe because t

Re: [css-d] Centering an image

2006-07-29 Thread Dave Goodchild
On 29/07/06, Indranil Dasgupta <[EMAIL PROTECTED]> wrote: > > Hello, > Can someone please take a look at > http://www.psdspy.com/britney_spears/1487.html > I need the shadowed image to be aligned in the center, but can't seem to > find a way to do it. Maybe because the container is float: left; > C

[css-d] Centering an image

2006-07-29 Thread Indranil Dasgupta
Hello, Can someone please take a look at http://www.psdspy.com/britney_spears/1487.html I need the shadowed image to be aligned in the center, but can't seem to find a way to do it. Maybe because the container is float: left; Can someone please help me. Regards Indranil _