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

You can use text-overflow to truncate a text using CSS but it does not fit fancy requirements.

When using Rails to truncate strings, you may end up with strings that are still too long for their container...

makandra dev
addyosmani.github.com

Twitter's Bootstrap CSS blueprint as a jQuery UI theme. Even if you don't want to use Bootstrap as...

makandra dev

I have no idea how it's supposed to work (or why the don't have a print CSS), but...

Firefox, Opera and Internet Explorer will repeat elements with position: fixed on every printed page (see attached example).

stackoverflow.com

Though Internet Explorer 9 supports the box-shadow CSS property there is a nasty bug which sometimes prevents it from...

miekd.com

A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the...

When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer...

Although it's tempting flirt with detecting mobile/touch devices with CSS media queries or Javascript feature detection alone, this approach...

makandra dev
peter.sh

A list of CSS vendor-prefixes.

developer.mozilla.org

List of non-standard CSS attributes that change how the browser resamples scaled images. Only use them if you know...

For university I have to stay up-to-date with lecture documents. Since my university doesn't offer RSS feeds...

If you turn on stylesheet caching, it might happen that stylesheets from different locations with different relative pathes will be...

If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...

Forms with many inputs (600+ in my case) become extremely unresponsive on an iPad, up to the point where it...

If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...

If you want to distribute a 's width equally over its columns, you can use the following CSS property:

makandra dev

If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...

dev.opera.com

Since version 11.10 Opera provides support for linear gradients using -o-linear-gradient. The syntax is pretty similar to Mozilla...

css-tricks.com

Good guide to different ways you can write CSS selectors that select elements by their attribute values.

Consider this HTML: Even though the surrounding container defines a line-height, which vertically centers its inline elements, the check...

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...