Building CSS mobile-first is the way forward, because blah blah blah progressive enhancement blah. Problem is, Internet Explorer prior...
Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...
Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
You will find this useful when creating responsive designs that work well on small screens. The attached Javascript gives a...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Say you want to vertically align a div box inside a div container. This is how you do it:
When you add a linear gradient to an element, IE9 removes all border-radius and inset box-shadows. This is...
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...
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:
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...
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...
CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the...