How do I put several <div>s in the middle of my webpage with css? -


i'm not sure how ask it. want create webpage has top, left, right or close, want know how put center content in divs. have attached image clarity.enter image description here

http://demo.xoops-theme.com/?xoops_theme_select=smashingmagazine

i think asking how use css/divs layout highlighted part. if here go:

<html> <head> <style>   .content {     margin:100px;   }    .row {     clear:both;   }   .half {     width:50%;     float:left;   }   /* used manage desired padding without affecting size of .half */   .inner {     padding:20px;   }  </style> </head>  <body>   <div class="content">     <div class="row">       <div class="half">         <div class="inner">           <h4>the title</h4>           <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod           tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam,           quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo           consequat. duis aute irure dolor in reprehenderit in voluptate velit esse           cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non           proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>         </div>       </div>       <div class="half">         <div class="inner">           <h4>the title</h4>           <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod           tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam,           quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo           consequat. duis aute irure dolor in reprehenderit in voluptate velit esse           cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non           proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>         </div>       </div>     </div>     <div class="row">       <div class="full">         <div class="inner">           <h4>the title</h4>           <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod           tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam,           quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo           consequat. duis aute irure dolor in reprehenderit in voluptate velit esse           cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non           proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>         </div>       </div>     </div>     <div class="row">       <div class="half">         <div class="inner">           <h4>the title</h4>           <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod           tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam,           quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo           consequat. duis aute irure dolor in reprehenderit in voluptate velit esse           cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non           proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>         </div>       </div>       <div class="half">         <div class="inner">           <h4>the title</h4>           <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed eiusmod           tempor incididunt ut labore et dolore magna aliqua. ut enim ad minim veniam,           quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo           consequat. duis aute irure dolor in reprehenderit in voluptate velit esse           cillum dolore eu fugiat nulla pariatur. excepteur sint occaecat cupidatat non           proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>         </div>       </div>     </div>   </div>  </body> </html> 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -