H
H
hesy2021-02-12 13:59:43
css
hesy, 2021-02-12 13:59:43

How to crop a line without a fixed width using flex?

Is it possible somehow to clip text without a fixed width inside flex?

Working with Tailwind CSS.

Here is what I have, now if you add it truncateto a div with text, then the text stretches to full width due to white-space: nowrap, if you add a fixed width for example, w-24then the text is cut off, but this is not at all what you need, that is, it is necessary for each size screen to adjust this size and it will not always fit correctly, but I don’t know how to make a responsive size, because far from layout..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Steppp, 2021-02-12
@Steppp

on line 16
<div class="flex-1" style="width: 100%">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question