font-size in CSS


/ Published in: XHTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. body{
  3. font-size:100%;
  4. line-height:1.125em;
  5. }
  6. .bodytext p{
  7. font-size:0.875em;
  8. }
  9. .sidenote {
  10. font-size:0.75em;
  11. }
  12. <!--[if !IE]>-->
  13. <style type="text/css">
  14. body{
  15. font-size:16px;
  16. }
  17. <!--<[endif]-->

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.