Home › Forums › Quform WordPress › Confused about styling radio buttons
- This topic has 2 replies, 2 voices, and was last updated 6 years, 3 months ago by gwatt.
- AuthorPosts
- January 11, 2018 at 4:09 am #23815gwattParticipant
Hi there,
I have looked through your guides and attempted to style radio buttons but to no avail. Downloading an existing template and looking through it was also unhelpful.
I want to do radio buttons that look like the attached image (not the text layout, just the buttons).
Below is the code in CSS to achieve this but I can’t work out how to make it work with your plugin. Could you please help me achieve this?
‘label.btn span {
font-size: 1.5em ;
}label input[type=”radio”] ~ i.fa.fa-circle-o{
color: #c8c8c8; display: inline;
}
label input[type=”radio”] ~ i.fa.fa-dot-circle-o{
display: none;
}
label input[type=”radio”]:checked ~ i.fa.fa-circle-o{
display: none;
}
label input[type=”radio”]:checked ~ i.fa.fa-dot-circle-o{
color: #7AA3CC; display: inline;
}
label:hover input[type=”radio”] ~ i.fa {
color: #7AA3CC;
}label input[type=”checkbox”] ~ i.fa.fa-square-o{
color: #c8c8c8; display: inline;
}
label input[type=”checkbox”] ~ i.fa.fa-check-square-o{
display: none;
}
label input[type=”checkbox”]:checked ~ i.fa.fa-square-o{
display: none;
}
label input[type=”checkbox”]:checked ~ i.fa.fa-check-square-o{
color: #7AA3CC; display: inline;
}
label:hover input[type=”checkbox”] ~ i.fa {
color: #7AA3CC;
}div[data-toggle=”buttons”] label.active{
color: #7AA3CC;
}div[data-toggle=”buttons”] label {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: normal;
line-height: 2em;
text-align: left;
white-space: nowrap;
vertical-align: top;
cursor: pointer;
background-color: none;
border: 0px solid
#c8c8c8;
border-radius: 3px;
color: #c8c8c8;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}div[data-toggle=”buttons”] label:hover {
color: #7AA3CC;
}div[data-toggle=”buttons”] label:active, div[data-toggle=”buttons”] label.active {
-webkit-box-shadow: none;
box-shadow: none;
}’Attachments:
You must be logged in to view attached files.January 11, 2018 at 2:38 pm #23843AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 16, 2018 at 1:06 am #23886gwattParticipantThanks, this is now resolved.
- AuthorPosts
- You must be logged in to reply to this topic.