Target a specific question with CSS (change CSS of one question) | Experience Community
Skip to main content
Solved

Target a specific question with CSS (change CSS of one question)

  • Jun 17, 2019 9:32 PM UTC
  • 3 replies
  • 287 views

Forum|alt.badge.img
I want to change the button color of one question, but I keep having issues. The skin I want on a single question seems to be applied to more than the one and once it was all questions on the page besides the one I wanted. Below is the code I used. I used #ffffff to easily check if it worked

QID144 .Skin label.MultipleAnswer,.Skin label.SingleAnswer

{ background:#ffffff; border-color: #ffffff; border-width:2px; color: #ffffff; font-weight: Bold; }

Best answer by rondev

Try using below CSS: .Skin #QID144 label.MultiAnswer, .Skin #QID144 label.SingleAnswer { background:#ffffff; border-color: #ffffff; border-width:2px; color: #ffffff; font-weight: Bold; }
View original

3 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • Jun 18, 2019 3:39 PM UTC
Try using below CSS: .Skin #QID144 label.MultiAnswer, .Skin #QID144 label.SingleAnswer { background:#ffffff; border-color: #ffffff; border-width:2px; color: #ffffff; font-weight: Bold; }

  • May 26, 2020 4:43 PM UTC

Can someone tell me WHERE this gets added?


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • May 26, 2020 9:20 PM UTC

In the custom CSS shown here