Skip to content

Instantly share code, notes, and snippets.

@brianblakely
brianblakely / dabblet.css
Created March 14, 2012 17:07
Improved Windows 8 Logo
/* Improved Windows 8 Logo */
* {
font-family: "Myriad Pro";
font-size: 96px;
}
body {
padding: 50px;
color: #646464;
}
@brianblakely
brianblakely / gist:1473024
Created December 13, 2011 17:26
Feeding DOM Elements Directly to jQuery
// Element By ID
var $foo = $(document.getElementById('foo'));
// Multiple Elements By ID
var $$foobar = $([
document.getElementById('foo'),
document.getElementById('bar')
]);
// Node List
@brianblakely
brianblakely / vertical-alignment.html
Last active September 25, 2015 12:37
Vertical Alignment That Works in IE
<!-- IE6+ -->
<!--
NOTES:
1. For this to work in IE6 or 7, your elements must have a "natural" display value of inline. <span>, <img>, <a> — these are a few elements that qualify.
2. These two elements must be the only immediate children of their parent.
3. valign-content cannot be 100% the width of the container. But it can be 99% width! Play with it.
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.