Add Me!Close Menu Navigation
Add Me!Open Categories Menu

Currently Browsing

Client-side

29 September
Posted in Client-side

Prevent broken floats in IE7 and lower

Ever experienced a float dropping to the next line ine IE7, without any good reason? Read on to discover how to prevent this behavior.

20 September
Posted in Client-side

Always show the vertical scrollbar using CSS

The dynamic nature of today’s webpages results in content being added to and removed from the DOM on-the-fly. By adding content to a short page, your content can suddenly surpass the browser window height, which results in a vertical scrollbar being added. The problem is that this addition causes your [...]

17 August
Posted in Client-side

Injecting data in the DOM with the jQuery data() method

A few months back I stumbled on the jQuery data() method. It saved me some time, code and resources, and provided me a clean way to inject DOM nodes with custom data. Didn’t have the time to blog about it at the time, but it’s really a little gem, so [...]

14 February
Posted in Client-side

Correct offset values in jQuery on the iPad

Using the jQuery offset() method results in unreliable values being returned  on the native iPad Safari mobile browser. More details about the issue have been posted in this ticket at the jQuery bug tracker. In the comments there, I noticed a solution posted by “matas”, which helped me to circumvent [...]

10 January
Posted in Client-side

Pure CSS & XHTML tabs

Across-browser approach for tab-based navigation using unordered lists. The code is just a foundation, and can be further extended with custom design. Credits are due to Joshua Kaufman who provided me with the base to start with. I ended up with making the following modifications to his code: I converted [...]