Posted By

Arronax on 11/19/09


Tagged


Versions (?)

Website content vertical align


 / Published in: HTML
 

Diese Lösung sollte barrierefrei sein, also warum nicht nutzen? This Solution should be barrier-free, so why not jusing it?

  1. <table id="maintable">
  2. <tr>
  3. <td>
  4. <div id="mainbox">
  5. Your Website
  6. </div>
  7. </td>
  8. </tr>
  9. </body>
  10.  
  11.  
  12. CSS-Code:
  13. body{text-align: center; margin: 0 auto;}
  14. td{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.80em; color: #242424;}
  15.  
  16. #maintable, #maintable tr, #maintable td {height: 100%; width:100%;border:0;margin:0 auto;}
  17.  
  18. #mainbox {margin:0 auto; text-align:center;}

Report this snippet  

You need to login to post a comment.