max-lines and display: none
kingmauri opened this issue · comments
hello!
what is the best to handle max lines in connection with display: none?
somehow it seems logical that it can't work because the element away from rendering?
<a class="btn" href=""> <div class="btn__icn"></div> <div class="btn__text">This is my Button</div> </a>
So basically I want when btn__text has 2 lines I just want to show the btn__icn. Is that possible? i tried stuff with visibility: hidden, position: absolute but looks glitchy.
thx!