html - radiobutton styling without label -
is possible style css only, radiobutton without having label? radiobuttons label seem appear ok, ones not having label, not appear @ all. didn't find proper solution through internet problem. http://codepen.io/anon/pen/ijjru/
`input.form-radio:empty{ margin-left: -9999px}
input.form-radio:empty ~ .description { position: relative; float: left text-indent: 30px margin-top: 0 }
input.form-radio:empty ~ .description:before { position: absolute display: block top: 3px bottom: 0 left: 0 content: '' width: 10px height: 10px background: #fff border-radius: 30px border: 2px solid #fdd68d }
input.form-radio:hover:not(:checked) ~ .description.option:before { text-indent: .9em color: #c2c2c2 background-color: orange }
input.form-radio:hover:not(:checked) ~ .description { color: #888 }
input.form-radio:checked ~ .description:before { text-indent: .9em background-color: orange }
input.form-radio:checked ~ .description { color: #777}`
the answer "yes" , "no".
"yes" can style radio buttons fiddle. boring , ugly.
css
.radiotest { background-color: red; border: 2px solid green; width: 20px; height: 20px; margin: 20px; }
the answer "no" if want make them pretty, , answered here in old discussion.
Comments
Post a Comment