I stumbled upon a great resource for CSS tabs here. I decided to use the third example called "target." However, as soon as I tried adding a FOURTH tab, everything broke down, including the functionality of the first 3 tabs. You can check out my attempt here.
It seems like the original CSS codes provided below need tweaking, but I'm not quite sure how to go about it:
/* Target Tabs */
.tabs-target span:nth-of-type(1):not(:target) ~ span:nth-of-type(2):not(:target) ~ .tab:nth-of-type(1),
.tabs-target span:nth-of-type(2):target ~ .tab:nth-of-type(2),
.tabs-target span:nth-of-type(1):target ~ .tab:nth-of-type(3)
{
display: block;
}
Could someone help me understand what adjustments are necessary to ensure the FOURTH tab functions properly?