요즘 부쩍 표준에 관심이 있으신거 같아서 팁으로 올려봅니다.

css를 초기화시켜주는 css입니다.


  1. /* v1.0 | 20080212 */
  2. html, body, div, span, applet, object, iframe,
  3. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  4. a, abbr, acronym, address, big, cite, code,
  5. del, dfn, em, font, img, ins, kbd, q, s, samp,
  6. small, strike, strong, sub, sup, tt, var,
  7. b, u, i, center,
  8. dl, dt, dd, ol, ul, li,
  9. fieldset, form, label, legend,
  10. table, caption, tbody, tfoot, thead, tr, th, td {
  11.     margin: 0;
  12.     padding: 0;
  13.     border: 0;
  14.     outline: 0;
  15.     font-size: 100%;
  16.     vertical-align: baseline;
  17.     background: transparent;
  18. }
  19. body {
  20.     line-height: 1;
  21. }
  22. ol, ul {
  23.     list-style: none;
  24. }
  25. blockquote, q {
  26.     quotes: none;
  27. }
  28. blockquote:before, blockquote:after,
  29. q:before, q:after {
  30.     content: '';
  31.     content: none;
  32. }
  33. /* remember to define focus styles! */
  34. :focus {
  35.     outline: 0;
  36. }
  37. /* remember to highlight inserts somehow! */
  38. ins {
  39.     text-decoration: none;
  40. }
  41. del {
  42.     text-decoration: line-through;
  43. }
  44. /* tables still need 'cellspacing="0"' in the markup */
  45. table {
  46.     border-collapse: collapse;
  47.     border-spacing: 0;
  48. }
2009/05/13 12:15 2009/05/13 12:15

Trackback Address :: 이 글에는 트랙백을 보낼 수 없습니다