The first thing you should to is fix the errors in your code. Run it through the validator and see what it says. Both CSS and HTML validator links in my signature.
Have a look at a tabbed button menu demo
I have. Maybe it will help you.