There are several resources for this on the Web. Here's one:
Mark Pilgrim ~ Pure CSS Tabs ~ http://diveintomark.org/archives/2003/03/24/pure_css_tabs