Alex Rivera | Logout

How to horizontal & vertical center a div

Asked 2010-12-01T14:59:33.917
18

Here is the source code:

<div id = "outer">
     <div id="top">
     ....
     </div>

     <div id="inner">
     ....
     </div>

     <div id="bottom">
     ....
     </div>
</div>

How do I make the div (id inner), horizontal & vertical center?

I can horizontal center, but I can't make a vertical center...

Edit
Report

1 Answer

0

This satisfies my needs for vertical centering anything Centering in the Unknown. It supports Internet Explorer 8 (and later) and modern browsers.

answered 2012-08-30T08:49:09.257

Your Answer