on-internet
← Community

Tabs background and font color change when click

Stack Overflow ·

I have a tabbed pane in my HTML page. The following changes has to done in the task. When select a tab or hover, background - white, text color - #6baed9, border - 1px same color as text. When tab is unselected (if selected the another tab this become unselected one) - background - #6baed9, text color - white, border - 1px same color as text. My CSS are as following, #my_settings ul.tab li a { display: inline-block; text-align: center; padding: 8px 12px; text-decoration: none; transition: 0.3s; font-size: 17px; height:35px; width:250px; color: #6baed9; } #my_settings ul.tab li a:hover { backgr

Comments

Sign in or sign up to comment and upvote.

No comments yet.