Different colored font in a drop-down box | XM Community
Skip to main content
Solved

Different colored font in a drop-down box

  • March 14, 2021
  • 2 replies
  • 78 views

Forum|alt.badge.img

Hello,
I was able to use CSS to change the color of text in a drop-down box but it's not appearing differentiated by color when I preview or publish the item. Does anyone know a workaround for this issue? Thank you, in advance!
I used the following CSS:
English Courses
image.png

Best answer by ahmedA

Dropdown options are parsed differently. Add this CSS to your question HTML to change its style. You'll have to change the number based on your setup.

2 replies

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • Answer
  • March 14, 2021

Dropdown options are parsed differently. Add this CSS to your question HTML to change its style. You'll have to change the number based on your setup.


Forum|alt.badge.img
  • Author
  • April 1, 2021

Ahmed,

Thank you!!! I was able to add colored indicators as needed in the (nth) spaces. Thank you SO much! It looks perfect!

image.png