Snippets


Markdown Combo

## Title
<div class="notation">
[Description]
</div>

Doc Type

<!DOCTYPE html>

Page structure

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <meta name="author" content="">
    <meta name="description" content="">
    <meta name="keywords" content="">

    <title>Site Title</title>
    
    <link rel="icon" type="image/ico" href="images/favicon.ico" />
    <link rel="shortcut icon" type="image/ico" href="images/shortcut-icon.png">
    <link rel="apple-touch-icon" type="image/ico" href="images/shortcut-icon.png">

    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <link rel="stylesheet" type="text/css" href="css/global.css">
</head>

<body>

    <div id="page">


    
    </div> <!-- page -->

</body>
</html>

Meta Tags

Deactivate pinch-to-zoom (for mobile devices)

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

Meta refresh

<meta http-equiv="refresh" content="0; url=http://example.com" />

Icons

<link rel="icon" type="image/ico" href="images/favicon.ico" />
<link rel="shortcut icon" type="image/ico" href="images/shortcut-icon.png">
<link rel="apple-touch-icon" type="image/ico" href="images/shortcut-icon.png">

Reset
(via Eric Meyer)

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

Buttons

HTML

<a class="button light dbl-btn-1" href="">MiPCT</a>
<a class="button light dbl-btn-2" href="">SIM PCMH</a>

Selection Highlight

CSS
::selection      {background-color: #303030; color: #eeeeee;}
::-moz-selection {background-color: #303030; color: #eeeeee;}

Horizontal Rules

HTML

<hr />
<hr class="thin" />
<hr class="thick" />

CSS

hr       {border: 0; height: 0;}
hr.thin  {border-top: 1px solid #eeeee;}
hr.thick {border-top: 1px solid #303030;}

Link state transition

a {
text-decoration: none;
-moz-transition: color 0.2s;
-ms-transition: color 0.2s;
-webkit-transition: color 0.2s;
transition: color 0.2s;
}