Welcome to the LimeSurvey Community Forum

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

radio button change and default text change

  • mt9999
  • mt9999's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #226390 by mt9999
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.4
Own server or LimeSurvey hosting: LimeSurvey
Survey theme/template: Fruity
==================
Hi all, 

1) I'm trying to change the color of radio buttons to a darker grey color but having trouble doing so. Is the below code suppose to work in custom.css?


.radio label::before {
border: 1px solid red; // desired color of border
}
 
.checkbox label::before {
border: 1px solid red;
}


2) I'm also trying to only change the default text size for when LimeSurvey's default text pops up, such as "This is question is mandatory" - I have hidden the Tip within all questions but this text appears when participants try to move on without answering all mandatory questions. I'm having trouble locating it to change. 

Thank you all!

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago - 2 years 6 months ago #226400 by Joffm
1. class .radio-item
 

2.
a. You may hide the entire ".question-valid-container" and use your own messages in the question text
   



b. set the font-size in class ".ls-question-help"



Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 6 months ago by Joffm.
The following user(s) said Thank You: mt9999

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #226403 by tpartner
Replied by tpartner on topic radio button change and default text change

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: mt9999

Please Log in to join the conversation.

  • mt9999
  • mt9999's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #226473 by mt9999
Replied by mt9999 on topic radio button change and default text change
Hi Joffm,
Thank you so much for your ongoing help! I'm wondering if you can help me with the font size of the text that participants type into a textbox of a question. It seems the text that they type in is very small compared to my questions and subquestions. I have tried changing the font size in custom.css under body and answer container but it's not working so far.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #226476 by Joffm

It seems the text that they type in is very small compared to my questions and subquestions

Really?
Use a smaller fontsize for your questions and subquestions. 

No, honestly:
Use a webdevelopment tool that is included in each browser (F12) to investigate which classes are involved.

Here you can change or add things to see the effects.
 
So, raise the font-size to see what happens.
 

Now you know that all you have to do is:
Add this to your custom. css
Code:
input[type="text"] {
    font-size:[Your desired size]pt;
  }

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: mt9999

Please Log in to join the conversation.

  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
2 years 6 months ago #226508 by tammo
For display on screen, please use px as the unit.

www.w3.org/Style/Examples/007/units.en.html

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: mt9999

Please Log in to join the conversation.

  • mt9999
  • mt9999's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
2 years 6 months ago #226555 by mt9999
Replied by mt9999 on topic radio button change and default text change
Thank you, Joffm! For some reason this didn't make the change for me, but I did receive another suggestion and it finally worked! Must have been something obvious that I missed initially.


body,
.form-control {
font-size: 20px;
}

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago #226578 by Joffm
Yes, in "fruity" you have to prepend this (as shown in the image)
Code:
.fruity input[type="text"] {    
    font-size:[Your desired size]px;
}

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: boshra.m

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose