Fix for CSS Code

  1. Here some CSS code:
  2.  
  3. h1
  4. {
  5. font-size: 2em;
  6. line-height: 1.3em;
  7. margin-top: 0;
  8. margin-bottom: 0.5em; /* 0.5em is equavalent to 1em in the page's base font.
  9.                          Remember, a margin specified in ems is relative to
  10.                          the element's font-size, not to the pages' base
  11.                          font size. So, for example, if we want a 1em margin
  12.                          (relative to the base font), we have to divide that
  13.                          length by the element's font-size:
  14.                          1em / 2em = 0.5em */
  15. }
  16.  
  17. h2
  18. {
  19. font-size: 1.5em;
  20. line-height: 1.3em;
  21. margin-top: 0.667em; /* Equivalent to 1em in the page's base font: 1 / 1.5 = 0.667em */
  22. margin-bottom: 0.667em;
  23. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.