php - how to make css contents like boxes, text as center? -


i have started css tutorial, don't have idea css. here posting css code. can please tell me how make whole contents center in browser. including screen shot of output......

enter image description here

body { background:#e9e9e9;   }  #formwrap { width:720px; margin-top:30px; margin-left:30px; margin-right:30px; background:#fff;  border:1px solid #f1f1f1; -moz-border-radius:20px; -moz-box-shadow:2px 2px 5px #999; -webkit-border-radius:20px; -webkit-box-shadow:2px 2px 5px #999; padding:16px 10px 40px; }  #formwrap #form { border-top: 1px solid #eee; width: auto; } #formwrap #form .row { border-bottom: 1px dotted #eee; display: block; line-height: 38px; overflow: auto; padding: 24px 0px; width: 100%; } #formwrap #form .row .label { font-size: 16px; font-weight: bold; font-family: arial, helvetica, sans-serif; width: 180px; padding-right: 10px; margin-right: 10px; } #formwrap #form .row .input { float: left; margin-right: 10px; font-style: italic; width: auto; }  .detail{ width: 260px; font-family: arial, helvetica, sans-serif; font-size: 20px; padding: 7px 8px; margin: 0; }  .mess { width: 450px; height: 250px; max-width: 450px; overflow: auto; font-family: arial, helvetica, sans-serif; font-size: 20px; padding: 7px 8px; line-height: 1em; margin: 0; }  #formwrap #form .row .context { color: #999; font-size: 11px; font-style: italic; font-family: arial, helvetica, sans-serif; width: 200px; float: left; }   #formwrap #form .submit { font-family: arial, helvetica, sans-serif; margin-top: 25px;  color: #000; font-size: 16px; text-shadow: 1px 1px 1px #999;  } 

considering #formwrap main container(white 1 , outermost), -

#formwrap{     margin:0 auto; } 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -