Return to Snippet

Revision: 47581
at June 10, 2011 09:08 by pussard


Initial Code
#foo html, #foo body, #foo div, #foo span, #foo object, #foo iframe,
#foo h1, #foo h2, #foo h3, #foo h4, #foo h5, #foo h6, #foo p, #foo blockquote, #foo pre,
#foo abbr, #foo address, #foo cite, #foo code, #foo del, #foo dfn, #foo em, #foo img, #foo ins, #foo kbd, #foo q, #foo samp,
#foo small, #foo strong, #foo sub, #foo sup, #foo var, #foo b, #foo i, #foo dl, #foo dt, #foo dd, #foo ol, #foo ul, #foo li,
#foo fieldset, #foo form, #foo label, #foo legend,
#foo table, #foo caption, #foo tbody, #foo tfoot, #foo thead, #foo tr, #foo th, #foo td,
#foo article, #foo aside, #foo canvas, #foo details, #foo figcaption, #foo figure,
#foo footer, #foo header, #foo hgroup, #foo menu, #foo nav, #foo section, #foo summary,
#foo time, #foo mark, #foo audio, #foo video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

#foo article, #foo aside, #foo details, #foo figcaption, #foo figure,
#foo footer, #foo header, #foo hgroup, #foo menu, #foo nav, #foo section {
  display: block;
}

#foo blockquote, #foo q { quotes: none; }
#foo blockquote:before, #foo blockquote:after,
#foo q:before, #foo q:after { content: ""; content: none; }
#foo ins { background-color: #ff9; color: #000; text-decoration: none; }
#foo mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
#foo del { text-decoration: line-through; }
#foo abbr[title], #foo dfn[title] { border-bottom: 1px dotted; cursor: help; }
#foo table { border-collapse: collapse; border-spacing: 0; }
#foo hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
#foo input, #foo select { vertical-align: middle; }

body { font:13px/1.231 sans-serif; *font-size:small; }
#foo select, #foo input, #foo textarea, #foo button { font:99% sans-serif; }
#foo pre, #foo code, #foo kbd, #foo samp { font-family: monospace, sans-serif; }

html { overflow-y: scroll; }
#foo a:hover, #foo a:active { outline: none; }
#foo ul, #foo ol { margin-left: 2em; }
#foo ol { list-style-type: decimal; }
#foo nav ul, #foo nav li { margin: 0; list-style:none; list-style-image: none; }
#foo small { font-size: 85%; }
#foo strong, #foo th { font-weight: bold; }
#foo td { vertical-align: top; }
#foo sub, #foo sup { font-size: 75%; line-height: 0; position: relative; }
#foo sup { top: -0.5em; }
#foo sub { bottom: -0.25em; }

#foo pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px; }
#foo textarea { overflow: auto; }
.ie6 legend, .ie7 legend { margin-left: -7px; }
#foo input[type="radio"] { vertical-align: text-bottom; }
#foo input[type="checkbox"] { vertical-align: bottom; }
.ie7 input[type="checkbox"] { vertical-align: baseline; }
.ie6 input { vertical-align: text-bottom; }
#foo label, #foo input[type="button"], #foo input[type="submit"], #foo input[type="image"], #foo button { cursor: pointer; }
#foo button, #foo input, #foo select, #foo textarea { margin: 0; }
#foo input:valid, #foo textarea:valid   {  }
#foo input:invalid, #foo textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }


#foo ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
#foo ::selection { background:#FF5E99; color:#fff; text-shadow: none; }
#foo a:link { -webkit-tap-highlight-color: #FF5E99; }
#foo button {  width: auto; overflow: visible; }
.ie7 img { -ms-interpolation-mode: bicubic; }

body, #foo select, #foo input, #foo textarea { color: #444; }
#foo h1, #foo h2, #foo h3, #foo h4, #foo h5, #foo h6 { font-weight: bold; }
#foo a, #foo a:active, #foo a:visited { color: #607890; }
#foo a:hover { color: #036; }

#foo .ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
#foo .hidden { display: none; visibility: hidden; }
#foo .visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
#foo .visuallyhidden.focusable:active,
#foo .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
#foo .invisible { visibility: hidden; }
#foo .clearfix:before, #foo .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
#foo .clearfix:after { clear: both; }
#foo .clearfix { zoom: 1; }

@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
  -ms-filter: none !important; }
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; }
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
}

Initial URL


Initial Description
Based on HTML5 Boilerplate 1.0
Replace #foo with selector to contain the reset to only include elements within specified container. Used for when you need a reset without affecting the rest of the existing styles on the page.

Initial Title
Localized reset

Initial Tags


Initial Language
CSS