makandra dev

If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...

adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...

blogs.msdn.com

What are Google’s plans for turning WebM into a genuinely open standard, one that is based on consensus like...

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...

makandra dev
code.google.com

Javascript that implements client-side hyphenation of HTML-Documents.

getfirebug.com

You know Firebug as a Firefox extension but there is also a "Lite" version which runs purely off JavaScript.

cssdiscussion.com

If you want your application to display properly on iPad, iPhone or Android there are two things to do:

imperialviolet.org

In January this year (2010), Gmail switched to using HTTPS for everything by default. Previously it had been introduced as...

The following Sass will do the trick: button, input[type="reset"], input[type="button"], input[type="submit"], input[type="file...

alistapart.com

I was recently confronted with the task of creating a two-column liquid layout with a header and footer in...

When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

Styling button tags across all major browsers is not easy. Many times you should be fine by using the native...

Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "&lt;élan&gt;"

web.archive.org

This step tests whether a given select option comes preselected in the HTML. There is another step to test that...

This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.

This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...

When using an odd value for line-height in CSS the result will vary across all major browsers.\

github.com

Fixes all Flash elements on a page so that they heed DOM stacking order

Regular spaces and non-breaking spaces are hard to distinguish for a human. Instead of using the &nbsp; HTML entity...

This note describes a Cucumber step definition that lets you test whether or not a CSS selector is present on...

If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...

kalzumeus.com

I’m going to list assumptions your systems probably make about names. All of these assumptions are wrong. Try to...

37signals.com

Lately, we’ve been exploring ways to offer web apps that perform like native apps on mobile devices. For this...

Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these: