Posted over 8 years ago by Henning Koch. api.jquery.com

The $.cssHooks object provides a way to define functions for getting and setting particular CSS values. It can also be...

Posted over 8 years ago by Henning Koch. makandracards.com

The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...

Posted over 8 years ago by Henning Koch.

The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...

Posted over 8 years ago by Henning Koch.

Makandra cards will auto-detect the language used for syntax highlighting. This auto-detection sometimes fails for short code snippets...

Posted over 8 years ago by Arne Hartherz.

Consider this Sass: .comment width: 320px; height: 240px; Any textarea with the comment class will be sized 320 by 240...

Posted over 8 years ago by Arne Hartherz.

CSS is a lot easier to write and read than clumsy XPath expressions. So when you need to use XPath...

Posted over 8 years ago by Ulrich Berkmueller. html5rocks.com

Some progress was made by browsers on implementing CSS filters like blur, greyscale or some other effects. You might already...

Posted over 8 years ago by Henning Koch. jakearchibald.github.com

Building CSS mobile-first is the way forward, because blah blah blah progressive enhancement blah. Problem is, Internet Explorer prior...

Posted over 8 years ago by Dominik Schöler.

Consider the following HTML & CSS: img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...

Posted over 8 years ago by Henning Koch.

You will find this useful when creating responsive designs that work well on small screens. The attached Javascript gives a...

Posted over 8 years ago by Dominik Schöler.

Say you want to vertically align a div box inside a div container. This is how you do it:

Posted over 8 years ago by Henning Koch.

When you add a linear gradient to an element, IE9 removes all border-radius and inset box-shadows. This is...

Posted over 8 years ago by Arne Hartherz. stackoverflow.com

Though the W3C even gives it as an example, no browser actually supports this CSS: img:before { content: "something"; }

Posted over 8 years ago by Henning Koch.

It's not logical, so don't be too hard on yourself. You need to give it a height and...

Posted over 8 years ago by Henning Koch.

Note that you are not allowed to embed any font in a website. You need to check the license first...

Posted over 8 years ago by Henning Koch. teddevito.com

This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...

Posted over 8 years ago by Ulrich Berkmueller.

Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.

Posted almost 9 years ago by Arne Hartherz.

You can change the color for text selection via CSS, using the ::selection and ::-moz-selection pseudo-elements.

This website uses short-lived cookies to improve usability.
Accept or learn more