K
K
kropotkin2014-07-30 19:17:04
HTML
kropotkin, 2014-07-30 19:17:04

A customized select, or maybe not a select at all?

Tell me how you can make such a select here:
i68.fastpic.ru/big/2014/0730/72/4abc9af2b18ea2eb39...
The red square is a picture.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michael Danilov, 2014-07-31
@kropotkin

When clicked, a div appears with a list of the form

<label><input class="hidden" name="category" type="checkbox" value="good"/><span>Продукты и промтовары</span></label>
<label><input class="hidden" name="category" type="checkbox" value="electronics"/><span>Бытовая техника и электроника</span></label>

.hidden {
display: none;
}
input + span {
color: #d0d0d0;
}
input:checked + span {
color: #000;
}

M
Maksim Zverev, 2014-07-30
@m1skam

Depending on what you want. If you need a select, then take one of the many plugins for styling and edit it for yourself.
In general, if you have this screenshot, then there is this site, see how it is done there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question