3-point leader to select elements

Asked 1 years ago, Updated 1 years ago, 87 views

Excuse me for asking you a question.
If the text doesn't fit the width of an element, I think we can prohibit line breaks by writing as follows and have a three-point leader (...) at the end.

p{
    overflow — hidden;
    text-overflow —ellipsis;
    white-space:nowrap;
  }

I would like to place this on the optional elements (each item) of the select elements.I would like to make a new line leader when selecting select elements from Android devices, but it seems difficult to reflect them in select elements, and I thought it would be possible to do it in the first place because it is different for each device. I don't mind if there are any clues or other trivial matters, so I would appreciate it if you could you could give me some advice.Thank you for your cooperation.

android css html5

2022-09-30 21:29

1 Answers

The answer to the question "Can text-overflow be applied to the option element" is "impossible."

text-overflow applies to block-level elements, where option elements are block-level elementsIt's not a bell element.

I think there is an alternative, so I think it would be better if you could ask another question.


2022-09-30 21:29

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.