Welcome, Guest
Username: Password: Remember me

TOPIC: Highlighting Question Text in Array

Highlighting Question Text in Array 1 month 3 weeks ago #109721

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 196
  • Thank you received: 5
  • Karma: 5
Hi all,
I'm stuck. I'm trying to chnage background-olor, font color and/or add a border to quesation text in an array on mouseover of one of the answers.

It seems like this should do it:
table.question tr.array1:hover,table.question tr.array2:hover {
  background-color: #fafafa;
  border: 1px solid #b81b1e;
  color: #b81b1e;
  }
table.question tr.array1 td:hover ,table.question tr.array2 td:hover {
    cursor:pointer;
  }

What's weird is that the background color gets applied...but the font color and border do not. I've placed the style at the bottom of the css file to ensure that other styles aren't affecting it. What gives?
Any thoughts? As always - much appreciated.
David
The administrator has disabled public write access.

Highlighting Question Text in Array 1 month 3 weeks ago #109725

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1061
  • Thank you received: 234
  • Karma: 74
David,
you can be maybe more lucky using the syntax:
border: 1px solid #b81b1e !important;
color: #b81b1e !important;
Benoît

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 1 month 3 weeks ago by Ben_V.
The administrator has disabled public write access.

Highlighting Question Text in Array 1 month 3 weeks ago #109729

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 196
  • Thank you received: 5
  • Karma: 5
Thanks - I'll keep trying.
The administrator has disabled public write access.

Highlighting Question Text in Array 1 month 3 weeks ago #109737

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
I've placed the style at the bottom of the css file to ensure that other styles aren't affecting it.
There still may be rules with more specific selectors overriding these or perhaps table-cell styles are interfering. Can you activate a test survey?


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Highlighting Question Text in Array 1 month 3 weeks ago #109753

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 196
  • Thank you received: 5
  • Karma: 5
here is a test:
Click me!
The administrator has disabled public write access.

Highlighting Question Text in Array 1 month 3 weeks ago #109774

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
Add this to the end of template.css:

table.question tr.array1:hover,
table.question tr.array2:hover {
	border-color: #B81B1E;
}
 
table.question tr.array1:hover td,
table.question tr.array2:hover td,
table.question tr.array1:hover th,
table.question tr.array2:hover th {
	border-top: 1px solid #B81B1E;
}
 
table.question tr.array1:hover .answertext,
table.question tr.array2:hover .answertext {
	color: #B81B1E;
}

img1.png



.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Highlighting Question Text in Array 1 month 3 weeks ago #109777

  • dweisser
  • dweisser's Avatar
  • OFFLINE
  • Bronze Donor
  • Posts: 196
  • Thank you received: 5
  • Karma: 5
That's the ticket! Thanks again!
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.256 seconds
Donation Image