- Posts: 32
- Thank you received: 1
Ask the community, share ideas, and connect with other LimeSurvey users!
.with-emoji .radio label::before, .with-emoji .radio label::after { display: none; }
tpartner wrote: Give the question a CSS class "with-emoji" and add something like this to the end of template.css:
Code:.with-emoji .radio label::before, .with-emoji .radio label::after { display: none; }
<img class="unchecked" src="/limeSurvey/upload/surveys/123456/images/img_1.jpg" style="width: 100px;" /> <img class="checked" src="/limeSurvey/upload/surveys/123456/images/img_2.jpg" style="width: 100px;" />
.with-emoji .radio label::before, .with-emoji .radio label::after { display: none; } .with-emoji .radio .label-text img.checked { display: none; } .with-emoji .radio input[type="radio"]:checked + label + .label-text img.unchecked { display: none; } .with-emoji .radio input[type="radio"]:checked + label + .label-text img.checked { display: inline; }
tpartner wrote: Well, I suppose you could do it with CSS backgrounds and/or borders
.with-emoji .radio label::before, .with-emoji .radio label::after { display: none; } .with-emoji .radio .label-text img { border: 4px solid #FFFFFF; box-sizing: content-box; -moz-transition: border-color 350ms ease; -o-transition: border-color 350ms ease; -webkit-transition:border-color 350ms ease; transition: border-color 350ms ease; } .with-emoji .radio .label-text:hover img { border-color: #ECF0F1; } .with-emoji .radio input[type="radio"]:checked + label + .label-text img { border-color: #233140; }