Skip to content

Instantly share code, notes, and snippets.

View parrfolio's full-sized avatar
My God, It's Full of Stars

Ryan Parr parrfolio

My God, It's Full of Stars
View GitHub Profile
@parrfolio
parrfolio / CSS3 Media Queries
Created February 26, 2011 17:02
Hardboiled CSS3 Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@parrfolio
parrfolio / Example
Created January 15, 2011 20:04
CSS3 :toggle
http://jsfiddle.net/ryanparr/yhd5v/
@parrfolio
parrfolio / jQuery.ColHighlight.js
Created January 6, 2011 00:27
jQuery Table Column Highlight
// highlight columns by Christopher Clark
$("tbody").delegate("td", "mouseover mouseout", function (e) {
if (e.type == 'mouseover') {
// multiple class attr value support - the column identifier is always the first class value
var target = $(this).attr("class");
if (target) {
target = target.split(" ").slice(0, 1).toString();
$("col." + target).addClass("highlight");
}
} else if (e.type == 'mouseout') {