This is not possible using CSS. You can, however, do it using jQuery. There's a nice blog post on it you can read.
1.4m articles
1.4m replys
5 comments
56.9k users