Posted By

LeeRJohnson on 07/22/10


Tagged

css style reset


Versions (?)

BBC barlesque Reset


 / Published in: CSS
 

URL: http://www.live.bbc.co.uk/frameworks/barlesque/examples/jsandcss/cssreset

not if bbc but first time i saw it

  1. /*http://www.bbc.co.uk/blogs/webdeveloper/article_resources/2009/10/reset.css*/
  2. /*Uncompressed copy of Barlesque reset code*/
  3.  
  4. /***Reset***/
  5.  
  6. body {
  7. font-size:62.5%; font-family:verdana,helvetica,arial,sans-serif; line-height:1;
  8. }
  9. body,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,legend,input,p,blockquote,th,td,hr{
  10. margin:0; padding:0;
  11. }
  12. h1,h2,h3,h4,h5,h6 {
  13. font-size:100%;
  14. }
  15. table {
  16. border-collapse:collapse; border-spacing:0;
  17. }
  18. caption {
  19. text-align:left; font-weight:normal;
  20. }
  21. th {
  22. text-align:left;
  23. }
  24. cite,address {
  25. font-style:normal;
  26. }
  27. ol,ul {
  28. list-style:none;
  29. }/*Not ideal, as mentioned above*/
  30. sub,sup {
  31. line-height:2;
  32. }/*IE6 given line-height:1 using conditionals elsewhere*/
  33. img {
  34. border:none;
  35. }
  36. pre,code {
  37. font-size:1.2em;
  38. }/*This is overridden to 14px for non-IE using conditionals elsewhere*/
  39. fieldset {
  40. border:0;
  41. }
  42. q:before,q:after {
  43. content:'';
  44. }
  45.  
  46. /***Reset class***/
  47.  
  48. .blq-rst {
  49. font-family:verdana,helvetica,arial,sans-serif;
  50. }
  51. .blq-rst dl,.blq-rst dt,.blq-rst dd,.blq-rst ul,.blq-rst ol,.blq-rst li,.blq-rst h1,.blq-rst h2,.blq-rst h3,.blq-rst h4,.blq-rst h5,.blq-rst h6,.blq-rst pre,.blq-rst form,.blq-rst fieldset,.blq-rst caption,.blq-rst p,.blq-rst blockquote,.blq-rst th,.blq-rst td,.blq-rst hr{
  52. margin:0; padding:0; line-height:1; font-size:100%; background-color:transparent;
  53. }
  54. .blq-rst *,.blq-rst input, .blq-rst a:link, .blq-rst a:visited {
  55. margin:0; padding:0; line-height:1; font-size:100%;font-family:verdana,helvetica,arial,sans-serif;text-decoration:none; font-weight:normal; text-transform:none;
  56. }
  57. .blq-rst table {
  58. border-collapse:collapse; border-spacing:0;
  59. }
  60. .blq-rst caption,.blq-rst legend {
  61. text-align:left; font-weight:normal;
  62. }
  63. .blq-rst th {
  64. text-align:left;
  65. }
  66. .blq-rst cite,.blq-rst address {
  67. font-style:normal;
  68. }
  69. .blq-rst ol,.blq-rst ul {
  70. list-style:none;
  71. }
  72. .blq-rst sub,.blq-rst sup {
  73. line-height:2;
  74. }
  75. .blq-rst img {
  76. border:none;
  77. }
  78. .blq-rst input,.blq-rst pre,.blq-rst code {
  79. font-size:1.1em;
  80. }
  81. .blq-rst fieldset {
  82. border:0;
  83. }
  84. .blq-rst q:before,.blq-rst q:after {
  85. content:'';
  86. }
  87. .blq-rst h1,.blq-rst h2,.blq-rst h3,.blq-rst h4,.blq-rst h5,.blq-rst h6,.blq-rst th,.blq-rst strong {
  88. font-weight:bold;
  89. }
  90. .blq-rst dt {
  91. font-weight:normal;
  92. }

Report this snippet  

You need to login to post a comment.