Answer the question
In order to leave comments, you need to log in
Why does not work in CHROME and how to fix it?
In JS, I assign classes to the elements of the drop-down list (option).
.st1:after {
/*margin-left: 10px;*/
content: url('/assets/imgs/1st.png');
/*display: inline-block;*/
}
.st2:after {
margin-left: 10px;
content: url(/assets/imgs/2st.png);
display: inline-block;
}
.st3:after {
margin-left: 10px;
content: url(/assets/imgs/3st.png);
display: inline-block;
}
Answer the question
In order to leave comments, you need to log in
Because options can almost never be styled at all, much less have pseudo-elements!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question