HTML and CSS: Insert span within Option Select

0

I'm trying to do the following Select:

Itriedtodothis,butIcouldnot:

HTML:

<selectclass="form-control">
    <option>
        <a title="Alimentação">
            <span class="color" style="display: block; width:20px; height: 20px; background-color: rgb(255, 153, 0);"></span>
            <span class="label">Alimentação</span>
        </a>
    </option>
    ...
</select>

That way, only the text appeared, not the color.

    
asked by anonymous 04.01.2017 / 15:11

0 answers