Answer the question
In order to leave comments, you need to log in
How to align a checkbox to the first line of text from two lines?
Dear CSS masters, tell me how to align the checkbox on the first line?
Unfortunately, I'm not using a native checkbox, but this library https://element.eleme.io/ for vue js.
As a result, the output is the following html:
<p><label role="checkbox" class="el-checkbox">
<span aria-checked="mixed" class="el-checkbox__input">
<span class="el-checkbox__inner"></span>
<input type="checkbox" aria-hidden="true" class="el-checkbox__original"
value="oop_treasury_concessionaire_daily_report__full_access">
</span>
<span class="el-checkbox__label">
Ежедневный отчет концессионера. Полный доступ
<!----></span>
</label>
</p>
<p ><label role="checkbox" class="el-checkbox"><span aria-checked="mixed" class="el-checkbox__input"><span class="el-checkbox__inner"></span><input type="checkbox" aria-hidden="true" class="el-checkbox__original" value="sno_znu__view"></span><span class="el-checkbox__label">
ЗНУ: Просмотр
<!----></span></label></p>
Answer the question
In order to leave comments, you need to log in
.el-checkbox__input {
vertical-align: top;
margin-top: 3px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question