Verschachtelte Tabs mit html umsetzen
Hallo zusammen,
versuche ein einfaches Tab-Beispiel zu verschachteln aber irgendwie funktioniert, das nicht wie ich mir das wünsche.
Ich habe einmal den Code in Jsfiddle kopiert, dort wird aber das verschachtelte Tab nicht angezeigt.
https://jsfiddle.net/zae27o4f/
Kommentar abgeben zu diesen Beitrag/Code ?Dann hier klicken
Der hier verwendete Code
<style>
body {font-family: Arial;}
/* Style the tab */
.tab {
overflow: hidden;
border: 2px solid #ccc;
background-color: #ffe3c9;
font-weight: bold;
}
/* Style the buttons inside the tab */
.tab button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 14px;
color: #000000;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: rgba(224,129,21,0.51);
}
/* Create an active/current tablink class */
.tab button.active {
background-color: rgba(224,129,21,0.51);
}
/* Style the tab content */
.tabcontent {