<label title="добавить товар в сравнение">
<input class="compare" type="checkbox" data-id="199">
<span class="compareLabel">
<i class="fa fa-circle-o" aria-hidden="true"></i>
Сравнить
</span>
</label>
input[type=checkbox] {
display: none;
}
.compareLabel {
color: #98a4a7;
font-weight: normal;
font-size:14px;
line-height: 24px;
vertical-align: top;
display: inline-block;
}
.compareLabel i {
line-height: 24px;
font-size: 24px;
vertical-align: top;
display: inline-block;
}
.dropmenu {
/*display: flex;*/
width: 50%;
display: table;
}
.dropmenu li {
margin: 0 30px;
position: relative;
/*border:1px solid red;*/
display:table-cell;
}
.dropmenu li:after {
content: "";
position: absolute;
width: 6px;
height: 6px;
background: #4ec7e5;
border-radius: 50%;
top: 5px;
left: 50%;
}
<div class="carte">
<div class="overlay">
<div class="carte__item">
<p> gojgiojirogjioegjeiogj gojgiojirogjioegjeiogj
</p>
</div>
<div class="carte__item">
<p> gojgiojirogjioegjeiogj gojgiojirogjioegjeiogj
</p>
</div>
</div>
<div class="overlay">
<div class="carte__item">
<p> gojgiojirogjioegjeiogj
</p>
</div>
<div class="carte__item">
<p> gojgiojirogjioegjeiogj gojgiojirogjioegjeiogj gojgiojirogjioegjeiogj gojgiojirogjioegjeiogj
</p>
</div>
</div>
</div>
@use postcss-nested;
@use cssnext;
.carte{
width: 440px;
text-align: center;
vertical-align: bottom;
font-size:0;
&__item{
width: 90%;
font-size:20px;
background:gray;
display:inline-block;
margin:20px auto 5px;
}
}
.overlay {
width: 50%;
position: relative;
display: block;
float: left;
}