what I need now is this. I currently implement a div box that displays text beyond two lines. If a single line is to be vertically centered, if I use display:flex;align-items:center; for the container, the text will not be truncated when there is too much text.
.info_des {
.margin-all(10, 10, 12, 8);
display: flex;
align-items:center;
div{
.line-height(21);
.height(42);
.font-size(14);
color: -sharp000;
letter-spacing: 0.01px;
}
}
<div class="info_des">
<div class="line_clamp2">is the leading online shopping platform in is the leading online shopping platform inis the leading online shopping platform in</div>
</div>