Skip to content

Instantly share code, notes, and snippets.

View curiositry's full-sized avatar

Curiositry curiositry

View GitHub Profile
@curiositry
curiositry / text_selection_style
Created August 28, 2013 18:41
CSS to style selected text differently from how the OS/Browser displays it be default.
::-moz-selection {
background-color: #777;
color: #fff;
}
::selection {
background-color: #777;
color: #fff;
}
@curiositry
curiositry / placeholder_styles
Created August 28, 2013 18:39
The code needed to style HTML5 input placeholder text.
::-webkit-input-placeholder { /* WebKit browsers */
color: #555;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: #555;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: #555;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */