E
E
Extramezz2015-11-12 12:04:03
css
Extramezz, 2015-11-12 12:04:03

How to customize the list?

There is a dropdown list, roughly speaking, like this: jsfiddle.net/xdfq9d9v/1
How to adjust the width of the orange part of the list to the widest li? (And, in fact, make sure that the text in li does not wrap).
To make it look like this:pxtd3Cr.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zachinalov, 2015-11-12
@Extramezz

If the list is absolute, then you can't control the width of the parent with CSS, only JS - jsfiddle.net/xdfq9d9v/4

V
Vitaliy Orlov, 2015-11-12
@orlov0562

jsfiddle.net/xdfq9d9v/2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question