Skip to content

Instantly share code, notes, and snippets.

@CarlRevell
CarlRevell / ie6-and-ie7-one-character-hacks
Created December 30, 2013 15:14
Old but sometimes useful single character CSS hacks for targeting IE6 and IE7, typically when testing some bugfix for these old browsers.
#myelement {
color: #999; /* shows in all browsers */
*color: #999; /* notice the * before the property - shows in IE7 and below */
_color: #999; /* notice the _ before the property - shows in IE6 and below */
}
@CarlRevell
CarlRevell / toString(base).js
Last active January 1, 2016 18:19
Don't forget JavaScript will return strings converted to a given base from a number...
parseInt(64).toString(); // "64"
parseInt(64).toString(10); // "64"
parseInt(64).toString(2); // "1000000"
parseInt(64).toString(8); // "100"
parseInt(64).toString(16); // "40"