div Vertical Horizontal Center Instance code:
About let Div vertical horizontal center of effect too much, here does not introduce, nonsense say, directly give code.
The code example is as follows:
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.softwhy.com/" /><title>Vertical Horizontal Center Code</title><styletype= "Text/css">Body{Background-color:#e1ddd9;font-size:12px;padding:0px;margin:0px;}#inhalt{position:Absolute;Height:200px;width:400px;margin:-100px 0px 0px-200px;Top:50%; Left:50%;text-align: Left;padding:0px;Background-color:#f5f5f5;Border:1px dotted #000000;Overflow:Auto;}</style></Head><Body><DivID= "Inhalt"></Div></Body></HTML>
The original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=9808
For more information, refer to: http://www.softwhy.com/divcss/
div Vertical Horizontal Center Instance Code