Posted By

alexwilliams on 01/01/07


Tagged

css javascript html


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

springett
twoandtwo
vali29
aziz


Center HTML content horizontally using CSS


 / Published in: CSS
 

  1. #content {
  2. margin: 0 auto;
  3. width: 740px;
  4. }
  5.  
  6. <div id="content">
  7. This is centered
  8. </div>

Report this snippet  

You need to login to post a comment.