Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

array design - horizontal borders / alternating color

  • bellagambad
  • bellagambad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 1 week ago #267767 by bellagambad
Your LimeSurvey version: 5.4.3+ 
Own server or LimeSurvey hosting: own server
Survey theme/template: custom fruity
==================
Hello,
I have two questions concerning array type questions :

1. I'd like to change the default color used to alternate row color in arrays to make it a bit darker. I can't find the css class, as I only can find the hover class.
.table-hover>tbody>tr:hover>td {
    background-color: red;
}

.fruity .table-hover>tbody>tr:hover>th {
    background-color: red;
}

Any idea how to change it ? Please find an example attached.

2. I'd like to only have the horizontal borders in array type questions and delete the vertical borders / outer frame. I cannot find a way to do it. Any idea ?

Thank you in advance for your help ! Best regards,
David
 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 1 week ago #267769 by Joffm
Hi,
always the best way is to investigate with the webdevelopment-tool of your browser.

Here you see
 
You see the two classes "ls-even" and "ls-odd"

Just to show it
 
Code:
<style type="text/css">
tr.ls-even {
    background-color:yellow;
}
tr.ls-odd {
    background-color:crimson;
}
</style>
 
Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • bellagambad
  • bellagambad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 months 1 week ago #267771 by bellagambad
Hi Joffm,

Thanks once again for your help ! It worked perfectly. I must be doing something wrong when using the webdev tool : I'm either pressing F12 or right click + inspect but I can't find the css class you mentioned.

And would you have an idea for the second question (2. I'd like to only have the horizontal borders in array type questions and delete the vertical borders / outer frame) ? I have been able to change border style but in very specific places, not all the horizontal / vertical or outer frame.

Good evening,
David

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose