Skip to content

Instantly share code, notes, and snippets.

@soniacs
Created December 26, 2012 17:03
Show Gist options
  • Save soniacs/4381504 to your computer and use it in GitHub Desktop.
Save soniacs/4381504 to your computer and use it in GitHub Desktop.
HTML & CSS boilerplate
@font-face {}
/* COMMON STYLES
-------------------------------- */
/* LAYOUT */
/* {position:absolute;} */
/* {position:relative;} */
/* {float:left;} */
/* {float:right;} */
/* {overflow:hidden;} */
/* {display:block;} */
/* {display:inline;} */
/* {display:none;} */
/* {margin:0} */
/* {padding:0;} */
/* {width:100%;} */
/* TYPOGRAPHY */
/* {line-height:1;} */
/* {list-style-type:none;} */
/* {font-size:1em;} */
/* {font-style:italic;} */
/* {font-style:normal;} */
/* {font-weight:bold;} */
/* {font-weight:normal;} */
/* {text-align:center;} */
/* {text-align:right;} */
/* {text-align:left;} */
/* {text-decoration:underline;} */
/* {text-decoration:none;} */
/* {text-transform:uppercase;} */
/* {text-transform:none;} */
/* COLOR */
/* {background-color: #fff;} */
/* {background-color: transparent;} */
/* {border: 1px solid #000;} */
/* {border: none;} */
/* {color: #000;} */
/* {border-radius: 0px;} */
/* {transition: all 0.3s ease-in-out;} */
/* BASE
-------------------------------- */
body{}
::selection, ::moz-selection{}
.wrapper{}
/* HEADER
-------------------------------- */
.site-header{}
/* FOOTER
-------------------------------- */
.site-footer{}
/* CONTENT
-------------------------------- */
.site-content{}
/* LAYOUT */
/* BASIC ELEMENTS */
div{}
p{}
blockquote{}
code{}
img{}
a{}
em{}
strong{}
pre{}
/* HEADINGS */
h1{}
h2{}
h3{}
h4{}
h5{}
h6{}
/* FORMS & BUTTONS */
form{}
fieldset{}
legend{}
label{}
input{}
textarea{}
select{}
/* TABLES */
table{}
caption{}
tr{}
thead{}
th{}
tbody{}
td{}
tfoot{}
/* LISTS */
dl{}
dt{}
dd{}
ol{}
ol li{}
ul{}
ul li{}
/* … */
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>HTML 5 complete</title>
<!-- styles -->
<link rel="stylesheet" type="text/css" href="css/normalize.css">
<link rel="stylesheet" type="text/css" href="css/default.css">
<!-- scripts -->
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/default.js"></script>
</head>
<body>
<header class="site-header">
<div class="wrapper">
</div>
</header>
<div class="site-content">
<div class="wrapper">
</div>
</div>
<footer class="site-footer">
<div class="wrapper">
</div>
</footer>
</body>
</html>
@frontaid
Copy link

Hi! There is also Natural Selection which is a CSS Boilerplate that includes more best-practice selectors. It is a great CSS base to start new projects, design systems, or CSS frameworks.

Copy link

ghost commented Mar 1, 2022

Great work Soniacs... thank you for developing this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment