Master CSS

This is the current master file I use for website projects. It is based on the Reset CSS from Eric Meyer and extended with some global styles and helpers that I most commonly use.

/* Reset
--------------------------------------------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

/* Global styles
--------------------------------------------------------------------------- */
body {font:13px/20px Verdana, Helvetica, sans-serif;}
h1 {font:28px/38px Arial, Helvetica, sans-serif;}
h2 {font:24px/34px Arial, Helvetica, sans-serif;}
h3 {font:20px/30px Arial, Helvetica, sans-serif;}
h4 {font:16px/26px Arial, Helvetica, sans-serif;}
h5 {font:14px/24px Arial, Helvetica, sans-serif;}
strong, .bold {font-weight:bold;}
em, dfn, .italic {font-style:italic;}
small, .small {font-size:11px;}
abbr, acronym {border-bottom:1px dotted #666;cursor:help;letter-spacing:1px;}
del {color:#666;}
p {margin-bottom:15px;}

/* Helpers
--------------------------------------------------------------------------- */
.clear, .floor {clear:both !important;}
.clearfix:after, .clearFix:after  {visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0;}
.alignRight {text-align:right !important;}
.alignLeft {text-align:left !important;}
.alignMiddle {vertical-align:middle !important;}
.noPadding {padding:0 !important;}
.noTopPadding {padding-top:0 !important;}
.noMargin {margin:0 !important;}
.noTopMargin {margin-top:0 !important;}
.noBackground {background:none !important;}
.hidden, .print {display:none !important;}

blog comments powered by Disqus