M
M
Maxim Supreme2018-02-20 16:32:15
css
Maxim Supreme, 2018-02-20 16:32:15

How to trim text in option tag?

5a8c2310777a2957666855.png
How to cut off the text in the option tag so that 1 line remains, and when the item is expanded, the text is completely displayed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Supreme, 2018-03-15
@MSupreme

overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;

A
aloky, 2018-02-20
@aloky

white-space: nowrap;

B
bpGusar, 2018-02-20
@bpGusar

white-space: nowrap;
and after opening you remove it.
or make it so that the first line was in a separate block of the announcement type and set the height of this block equal to the height of the line, and in the second block do the rest of the information.
but it would be better if you threw off the code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question