CSS ReBoot

A little while ago I mentioned the Yahoo’s CSS Reset. The following was picked up from Agitprop & then neatened for the Author’s own nefarious purposes.

Please Note: Needs some work…


pre, tt, code, kbd, samp    { font-family: “courier new”, courier; }

    html    { line-height: 1.12; word-spacing: normal; letter-spacing: normal; text-transform: none; text-align: left; text-indent: 0; white-space: normal; }

    h1  { margin: .67em 0; font-size: 2em; }

h2  { margin: .75em 0; font-size: 1.5em;}

h3  { margin: .83em 0; font-size: 1.17em; margin: .83em 0; }

h4, p, blockquote, fieldset, form, ul, ol, dl, dir, menu    { 

margin: 1.12em 0; }

h5  { margin: 1.5em 0; font-size: .83em;}

h6  { margin: 1.67em 0; font-size: .6em;}

h1, h2, h3, h4, h5, h6, b, strong   { font-weight: bold; }

    blockquote  { margin:0 40px; }

i, cite, em, var, address   { font-style: italic;}

pre, tt, code, kbd, samp    { font-family: monospace; }

pre { white-space: pre; }

big { font-size: larger;}

small, sub, sup { font-size: smaller; }

sub { vertical-align: sub; }

sup { vertical-align: super; }

s, strike, del  { text-decoration: line-through; }

hr  { border: 1px inset; /* questionable */ }

    ol, ul, dir, menu, dd   { padding-left: 40px; }

ol li   { list-style-type: decimal; }

ul li   { list-style-type: disc; }

ol ol li    { list-style-type: lower-alpha; }

ol ol ol li { list-style-type: lower-roman; }

ul ul, ul ol, ul menu, ul dir, menu ul, menu ol, menu menu, menu dir, dir ul, dir ol, dir menu, dir dir, ol ul, ol ol, ol menu, ol dir  { margin-top: 0; margin-bottom: 0; }

ol ul, ul ul, menu ul, dir ul, ol menu, ul menu, menu menu, dir menu, ol dir, ul dir, menu dir, dir dir     { list-style-type: circle; }

ol ol ul, ol ul ul, ol menu ul, ol dir ul, ol ol menu, ol ul menu, ol menu menu, ol dir menu, ol ol dir, ol ul dir, ol menu dir, ol dir dir, ul ol ul, ul ul ul, ul menu ul, ul dir ul, ul ol menu, ul ul menu, ul menu menu, ul dir menu, ul ol dir, ul ul dir, ul menu dir, ul dir dir, menu ol ul, menu ul ul, menu menu ul, menu dir ul, menu ol menu, menu ul menu, menu menu menu, menu dir menu, menu ol dir, menu ul dir, menu menu dir, menu dir dir, dir ol ul, dir ul ul, dir menu ul, dir dir ul, dir ol menu, dir ul menu, dir menu menu, dir dir menu, dir ol dir, dir ul dir, dir menu dir, dir dir dir  { list-style-type: square; }

    u, ins  { text-decoration: underline; }

center  { text-align: center; }

caption, col, colgroup, legend, table, tbody, td, tfoot, th, thead, tr  { clear: none; float: none; margin: 1px; padding: 1px; background: transparent; border: none; text-decoration: none; }

table, tbody, tfoot, thead, tr { display: block; background-position: top left; width: auto; height: auto; }

caption, legend, td, th { display: inline; vertical-align: baseline; font-size: 1em; line-height: 1.33em; color: black; word-spacing: normal; letter-spacing: normal; text-transform: none; text-align: left; text-indent: 0; white-space: normal; }

th  { font-weight: bolder; text-align: center; }

caption { text-align: center; }