
/*Tab Button Styles*/ .tab { background-color: var(--primary1-color); transition: all 0.3s; font-size: 1.25rem; line-height: 1.2; position: relative; z-index: 0; padding: 15px 20px; border: 2px solid #303030; color: #ffffff; } /* Change background color of buttons on hover */ .tab:hover { opacity: 0.6; } /* Create an active/current tablink class */ .tab button.active { background-color: #ccc; } /* Style the tab content */ .tabcontent { display: none; padding: 6px 12px; border: 1px solid #ccc; border-top: none; } /*JS for tabs */ function openCity(evt, cityName) { // Declare all variables var i, tabcontent, tablinks; // Get all elements with class="tabcontent" and hide them tabcontent = document.getElementsByClassName("tabcontent"); for (i = 0; i < tabcontent.length; i++) { tabcontent[i].style.display = "none"; } // Get all elements with class="tablinks" and remove the class "active" tablinks = document.getElementsByClassName("tablinks"); for (i = 0; i < tablinks.length; i++) { tablinks[i].className = tablinks[i].className.replace(" active", ""); } // Show the current tab, and add an "active" class to the button that opened the tab document.getElementById(cityName).style.display = "block"; evt.currentTarget.className += " active"; }
First Tab Title Here
Jelly beans dragée shortbread wafer carrot cake marzipan cookie bear claw bear claw. Cake tart bear claw cotton candy halvah ice cream cookie biscuit. Dragée topping bear claw marzipan biscuit danish cake bonbon. Tiramisu caramels topping sweet jelly-o. Wafer jelly-o gingerbread chupa chups brownie.
Second Tab Title Here
Jelly beans dragée shortbread wafer carrot cake marzipan cookie bear claw bear claw. Cake tart bear claw cotton candy halvah ice cream cookie biscuit. Dragée topping bear claw marzipan biscuit danish cake bonbon. Tiramisu caramels topping sweet jelly-o. Wafer jelly-o gingerbread chupa chups brownie.