How to center DIV in DIV?

Posted by Lukas on Stack Overflow See other posts from Stack Overflow or by Lukas
Published on 2008-09-22T12:27:57Z Indexed on 2010/04/12 16:23 UTC
Read the original article Hit count: 376

Filed under:
|

I'd like to ask you if anyone know how to horizontally center DIV in DIV with CSS ( if it's possible at all ). Outer DIV has 100%:

<div id="outer" style="width:100%">  
     <div id="inner">Foo foo</div>
</div>

I've been searching for the solution for some time but I haven't found it anywhere yet...

© Stack Overflow or respective owner

Related posts about html

Related posts about css