Cherry Pick
by Fellow
$22.00
<div class="product-tabs-container"> <div class="tabs-nav"> <label for="tab-2">Flavor Profile</label> <label for="tab-1">Description</label> </div> <input type="radio" id="tab-2" name="tab-group" checked> <div id="content-2" class="tab-content"> <div class="table-row"> <span class="table-cell">Roast</span> <span class="table-cell">Medium-Light</span> </div> <div class="table-row"> <span class="table-cell">Tasting Notes</span> <span class="table-cell">Sweet Apple, Cherry Jam, Milk Chocolate</span> </div> <div class="table-row"> <span class="table-cell">Ideal For</span> <span class="table-cell">Pour Over, Filter Coffee, French Press, Drip Brewing</span> </div> </div> <input type="radio" id="tab-1" name="tab-group"> <div id="content-1" class="tab-content"> <p><br></p> </div> </div> <style> .product-tabs-container { max-width: 600px; margin: 20px auto; font-family: sans-serif; } .tabs-nav { display: flex; border-bottom: 2px solid #ccc; /* Border for the entire tab navigation */ } .tabs-nav label { padding: 15px 20px; font-weight: bold; background-color: #f8f8f8; /* Light gray background for inactive tabs */ border: 1px solid #ccc; border-bottom: none; border-radius: 5px 5px 0 0; cursor: pointer; transition: all 0.3s ease; margin-right: 5px; } .tabs-nav label:hover { background-color: #eee; } .product-tabs-container input[type="radio"] { position: absolute; opacity: 0; z-index: -1; } /* Hide all tab content by default */ .tab-content { display: none; padding: 20px; background-color: #fff; border: 1px solid #ccc; border-top: none; } /* Show the content for the selected tab */ #tab-1:checked ~ #content-1, #tab-2:checked ~ #content-2 { display: block; } /* Style the label of the selected tab */ #tab-1:checked ~ .tabs-nav label[for="tab-1"], #tab-2:checked ~ .tabs-nav label[for="tab-2"] { background-color: #fff; border-bottom: 1px solid #fff; /* Blends the active tab border with the content border */ } /* Styles for the table-like content within the "Flavor Profile" tab */ .tab-content .table-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eee; } .tab-content .table-row:last-child { border-bottom: none; } .tab-content .table-cell { flex: 1; padding: 0 10px; } .tab-content .table-row .table-cell:first-child { font-weight: bold; } </style>