Skip to content

Instantly share code, notes, and snippets.

View BigAB's full-sized avatar
🇨🇦
JavaScript Loving Canadian

Adam L Barrett BigAB

🇨🇦
JavaScript Loving Canadian
View GitHub Profile
/**
* Cool boxes
*/
body {
background: #fff;
}
.pic {
display: block;
padding: 3.5em 1em 0.5em 1em;
margin: 0.3em;
@BigAB
BigAB / dabblet.css
Created March 2, 2012 06:30
Cool Boxes
/**
* Cool Boxes
*/
body {
background: #fff;
}
.pic {
display: inline-block;
padding: 3.5em 1em 0.5em 1em;
margin: 0.3em;
@BigAB
BigAB / dabblet.css
Last active July 12, 2016 01:32
Body 100% height when content has margin problem
/**
* Body 100% height when content has margin problem
*/
html, body {
position: relative;
min-height: 100%;
background: yellow;
margin: 0;
padding: 0.1px; /* needed to prevent the margin problem */
box-sizing: border-box;
@BigAB
BigAB / gist:501124
Created July 30, 2010 19:01 — forked from remy/gist:330318
Clunky Edit for IE
/**
* Add this script to the end of your document that use <input autofocus type="text" />
* or <input type="text" placeholder="username" /> and it'll plug support for browser
* without these attributes
* Minified version at the bottom
*/
(function () {
function each(list, fn) {
var l = list.length;