JSFiddle - React, Tailwind, and code Playground
HTML
<div class="tabs ui-tabs ui-corner-all ui-widget ui-widget-content">
<input id="tab1" type="radio" name="tabs">
<label for="tab1">Металлопродукция</label>
<input id="tab2" type="radio" name="tabs">
<label for="tab2">Металлообработка</label>
<input id="tab3" type="radio" name="tabs">
<label for="tab3">Строительная продукция и услуги</label>
<input id="tab4" type="radio" name="tabs">
<label for="tab4">Промышленное оборудование и машиностроение</label>
<input id="tab5" type="radio" name="tabs">
<label for="tab5">Деревообработка и услуги</label>
<input id="tab6" type="radio" name="tabs">
<label for="tab6">Спецтехника и транспорт</label>
<input id="tab7" type="radio" name="tabs">
<label for="tab7">Прочее сырье и материалы, услуги</label>
<input id="tab8" type="radio" name="tabs">
<label for="tab8">Услуги для бизнеса и промышленности</label>
<section id="content1">
<input id="id_category11" name="category" type="radio" value="Черный металлопрокат">
<label for="id_category11">Черный металлопрокат</label>
<input id="id_category12"...
CSS
.tabs {
width: 100%;
padding: 0px;
margin: 0 auto;
position: relative;
}
.tabs section {
display: none;
padding: 5px;
background: white;
position: absolute;
top: 0;
left: 240px;
min-width: 250px;
}
.tabs input {
display: none;
}
.tabs-li{
background: #DEE8F2;
}
.tabs label {
display: block;
width: 230px;
padding: 5px;
color: #4F5966;
background: #DEE8F2;
cursor: pointer;
margin:0;
}
.tabs input:checked + label {
color: #555;
background: white;
}
#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4,#tab5:checked ~ #content5,#tab6:checked ~ #content6,#tab7:checked ~ #content7,#tab8:checked ~ #content8,#tab9:checked ~ #content9 {
display: block;
}
.tabs section {
animation: scale 0.7s ease-in-out;
}
.tabs ul{
list-style:none;
}
.tabs li{
text-decoration:none;
padding:5px;
}
.tabs a{
text-decoration:none;
color:#000;
}
.tabs a:hover{
text-decoration:none;
color:#999999;
}
@keyframes scale {
0% {
transform: scale(0.9);
opacity: 0;
}
50% {
transform: scale(1.005);
opacity: 0.5;
}
100% {
transform: scale(1);
opacity: 1;
}
}
select#id_category {
padding: 15px;
border-radius: 5px;
border-color: rgb(169, 169, 169);
}