An image is an inline element. That's why margin: 0 auto won't work. Give it a 
display : block an a width: xxxpx and it'll work.

Otherwise, if you wanna keep your pic inline, give a text-align:center to the 
hero unit.

Envoyé de mon iPhone

Le 2 sept. 2012 à 04:11, Will Bagshaw <[email protected]> a écrit :

> Changing the existing padding to adjust the image inside the hero-unit seemed 
> to work ok for me.
> 
> On Friday, August 31, 2012 4:07:51 PM UTC-7, Will Bagshaw wrote:
> I just dropped a big logo in the hero-unit and adding margin: auto 0; to the 
> hero-unit does not work. I tried adding a .hero-unit img { margin: auto 0;} 
> and that didn't work either. Any suggestions?
> 
> On Saturday, August 18, 2012 7:57:15 PM UTC-7, Kenneth wrote:
> Give the standard element centering trick a try? margin:0 auto...

Reply via email to