Posted By

sethmbruce on 02/07/11


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

abbyabigale


Sizing Em CSS


 / Published in: HTML
 

  1. BODY {font-size:62.5%}
  2. H1 {font-size:2em} /* displayed at 24px */
  3. H2 {font-size:1.5em} /* displayed at 18px */
  4. H3 {font-size:1.25em} /* displayed at 15px */
  5. H4 {font-size:1em} /* displayed at 12px
  6.  
  7. #navigation {font-size:1em}
  8. #main_content {font-size:1.2em}
  9. #side_bar {font-size:1em}
  10. #footer {font-size:0.9em}
  11.  
  12.  
  13. <div id="navigation"> ... </div>
  14. <div id="main_content"> ... </div>
  15. <div id="side_bar"> ... </div>
  16. <div id="footer"> ... </div>
  17. </body>

Report this snippet  

You need to login to post a comment.