Skip to content

Instantly share code, notes, and snippets.

Avatar

Nico Haemhouts nicohaemhouts

View GitHub Profile
View Dropcap.markdown

Dropcap

Show the first letter of the first paragraph larger and in a different color than the rest of the text, using the ::first-letter selector.

A Pen by Nico Haemhouts on CodePen.

License.

@nicohaemhouts
nicohaemhouts / Pasting-multi-line-text-into-a-single-line-text-input-in-Internet-Explorer.markdown
Created Mar 23, 2015
Pasting multi-line text into a single-line text input in Internet Explorer
View Pasting-multi-line-text-into-a-single-line-text-input-in-Internet-Explorer.markdown

Pasting multi-line text into a single-line text input in Internet Explorer

When you paste multi-line text into a single-line text input in Internet Explorer you only get the first line. This is because IE chucks away everything after the first newline-character. Other browsers will simply replace the newline with spaces. This snippet does the same thing for IE. If window.clipboardData exists we're on IE and we should intercept the paste event to replace newlines with spaces.

A Pen by Nico Haemhouts on CodePen.

License.

@nicohaemhouts
nicohaemhouts / Affix-and-stack-elements-at-the-top-of-the-screen-on-scroll..markdown
Created Mar 25, 2015
Affix and stack elements at the top of the screen on scroll.
View Affix-and-stack-elements-at-the-top-of-the-screen-on-scroll..markdown

Affix and stack elements at the top of the screen on scroll.

Kind of like the affix plugin in Twitter Bootstrap, but this one automatically calculates the top offset. It creates a nice stack of elements under the fixed navbar at the top of the screen.

A Pen by Nico Haemhouts on CodePen.

License.

View Better Helvetica
body {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-weight: 300;
}
@nicohaemhouts
nicohaemhouts / _.md
Last active Aug 29, 2015
CDS EventsPerSecond
View _.md
@nicohaemhouts
nicohaemhouts / _.md
Last active Aug 29, 2015
CDS EventsPerSecond 2
View _.md
@nicohaemhouts
nicohaemhouts / _.md
Last active Aug 29, 2015
Force Layout NGS 2
View _.md
@nicohaemhouts
nicohaemhouts / _.md
Last active Aug 29, 2015
Force Layout NGS
View _.md
View _.md
@nicohaemhouts
nicohaemhouts / _.md
Last active Aug 29, 2015
Force Layout with Radial Progress
View _.md