Well I have a user profile page with codes written like the way it is in the attachment profile.php.
In order to improve re-usability of the tabs, I attempted to create a file called class_tabs.php to make it object oriented. It did not work however, as the css is seriously messed up, and I have absolutely no idea why it did not.
The class file is attached in class_tabs.php, and the modified code with OOP(not working) is attached as profile_oop.php
Incase you find it necessary, the css/tabs.css and inc/tabs.php files are also provided in attachment. They should be irrelevant to this problem though, but just incase..
I've compressed everything in .zip file, please help...