stackoverflow.com

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

Sometimes you need a special version of chrome because it has some features you need for testing, like in this...

You can set the resolution and user agent used in selenium tests with chrome with the method described in this...

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

When you want to test how an web-application reacts in a specific resolution, you can set up a specific...

developer.mozilla.org

The DOM window object provides access to the browser's history through the history object. It exposes useful methods and...

If you get this: p_elSource.attachEvent is not a function ... you need to disable Firebug or switch to another browser.

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

In order to navigate through the browser history. you can manipulate the window.history object via javascript like follows:

demosthenes.info

The result is a .ico file with multiple versions of your logo at different resolutions. Now, depending on the context...

Spreewald gives you steps like these: When I enter "text" into the browser dialog Also see Accept or deny JavaScript...

makandra dev
developer.mozilla.org

Basic box shadow support is available in all browsers today, but you need to check to which extend they are...

I got these warnings while deploying a Rails 3.2 app with asset pipeline enabled: *** [err :: host.tld] find: `/opt/www/hollyapp.com/releases/20120503115342/public/images': No such...

You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }

By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...

makandra dev
codemirror.net

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...

When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...

The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...

teddevito.com

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

stackoverflow.com

Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...

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

intridea.com

This article shows how to create a Sass mixin for a colored button. The button's foreground color is dynamically...

This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...

This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...