On Sat, 22 Nov 2008 19:08:50 +0000
Came this utterance fomulated by Peter Bradley to my mailbox:

> Ysgrifennodd Estelle Weyl:
> > Give the parent a width of 100%, then give the image a display of
> > block and margin auto.
> >
> >
> >   
> 
> Doesn't seem to work for me.

But adding 'text-align: center" to the parent will.

Typically i do this to body to center the whole site in the browser.
Then use 'text-align: left' for relevant content divs. Thus:

#header {
    width:100%;
    text-align:center;
}

img#logo {
    display:block;
    margin:auto;
}

-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to