S
S
s1ntez2010-09-08 18:40:04
css
s1ntez, 2010-09-08 18:40:04

How to make webkit not wrap text in select to second line, but just hide it?

image

Safari 5.0, Chrome 5.0.375.127

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
s1ntez, 2010-09-09
@s1ntez

Thanks for the cons) The whole thing turned out to be really in inherited styles. If the parent has word-wrap:break-word; then select inherits it. I don't even know if this is a feature or a Webkit bug. This is the first time I've encountered this behavior.

S
s1ntez, 2010-09-08
@s1ntez

ok, I'll try to make a test case later

F
faustmax, 2010-09-08
@faustmax

By default, it does not transfer anything, now I checked it in Chrome 5.0.375.127.
We need to look at the styles.

F
FloppyFormator, 2010-09-09
@FloppyFormator

Maybe so?

option { white-space: nowrap; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question