A better clearfix (or: Clearing floats like there is a tomorrow)

Posted by Runar Svendsen on January 06, 2009

I can’t believe its not clearfix (sic) because this fixes clears! The tip is from 2005, I have no idea how everybody missed this, but anyway here it is:
Simple Clearing of Floats

CSS min-height tricks

Posted by Runar Svendsen on January 06, 2009

Here is my favorite CSS min-height solution:

Dustin Diaz min-height solution

How to get smooth fonts like Safari on Ubuntu

Posted by Runar Svendsen on January 03, 2009

My main claim against using Ubuntu is that the font rendering is just ugly and uninspiring. I am no graphic designer, but I love seeing my XHTML rendered in Safari on OS X. Turns out there is a solution that makes Firefox on Ubuntu almost as good as Safari/OS X, and it’s quick, easy and free!

If you want the whole explanation, go to this article, but if you just want the fix, all you have to do is this:

Download this file and store it in your home folder (ex: /home/yourname) with the file name .fonts.config (remember the leading dot). Restart X (press CTRL+ALT+BACKSPACE or log out and in again), and your fonts should be smooth as a you-know-who’s you-know-what.

Below are a few selected web sites captured before (left) and after (right) the font smoothing was enabled.

Wordpress.com before and after

Alistapart.com before and after smoothing