Checkbox styling
-
I’ve created a check box and want to have the items listed in separate lines. I found a page on the support area that says to add “1
span.wpcf7-list-item { display: block; }” to my theme’s stylesheet. I’m not a coder, so I’m struggling with this guidance. Where am I supposed to add/change the code? Nothing I’ve tried works.checkbox {
display: block;
min-height: 25px;
margin-top: 10px;
margin-bottom: 10px;
padding-left: 20px;
vertical-align: middle;
}
.radio label,
.checkbox label {
display: inline;
margin-bottom: 0;
font-weight: normal;
cursor: pointer;
}
.radio input[type=”radio”],
.radio-inline input[type=”radio”],
.checkbox input[type=”checkbox”],
.checkbox-inline input[type=”checbox”] {
float: left;
margin-left: -20px;
}
.radio + .radio,
.checkbox + .checkbox span.wpcf7-list-item {
display: block
margin-top: -5px;
}
.radio-inline,
.checkbox-inline {
display: inline-block;
padding-left: 20px;
margin-bottom: 0;
vertical-align: middle;
font-weight: normal;
cursor: pointer;
- The topic ‘Checkbox styling’ is closed to new replies.