1
Good afternoon! I am editing an OPENCART store and need to customize the input radio shoe size, doing as follows:
.input-option356 {
list-style: none;
margin: 0;
padding: 0;
}
.input-option356:after {
content: "";
clear: both;
}
.radio {
border: 1px solid #ccc;
box-sizing: border-box;
float: left;
height: 70px;
position: relative;
width: 120px;
}
.radio + .radio {
margin-left: 25px;
}
.radio label {
background: #fff no-repeat center center;
bottom: 1px;
cursor: pointer;
display: block;
left: 1px;
position: absolute;
right: 1px;
text-indent: 100%;
top: 1px;
white-space: nowrap;
}
.radio label input[type=radio] {
display: none;
}
.radio input:checked + label {
outline: 4px solid #21b4d0;
background-color: red;
}
<div id="input-option356">
<div class="radio">
<label>
<input type="radio" name="option[356]" value="288">
44
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="option[356]" value="282">
38
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="option[356]" value="283">
39
</label>
</div>
He is this way
I need it to show the input that is selected, but I’m not getting it. Someone has a suggestion?
I intend to stay:
Thank you
Dude but what exactly was your intention? How was this btn to look as a final result ?
– hugocsl
@hugocsl edited the question and put how I hope it will stay
– Cristiano Facirolli