eqcss / eqcss

EQCSS is a CSS Reprocessor that introduces Element Queries, Scoped CSS, a Parent selector, and responsive JavaScript to all browsers IE8 and up

Home Page:https://elementqueries.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!