CSS Pseudo classes - :active not working
June 17, 2013 12:00 AM
Hi guys, i have created tabs using text boxes and styling them with CSS.
The pseudo selector of :hover works fine when i place the mouse over the textbox/tab, but i cannot seem to get :active to work. I would like to have the currently selected tab highlighted.
Anyone had these problem or know a solution?
Thanks.
Discussion (2)
I think :active is for links and buttons. Textboxes are divs, so they won't trigger it afaik.
I usually solve this by just placing an image of the highlighted tab in the respective page or chapter and disinheriting the button.
Tim
Discussions have been disabled for this post