So the effect that I want is it to stay green after I click it. Currently, it turns green only when you hover, but as soon as I hover off it turns off. This ONLY happens on my pc browser. It seems to work fine on mobile safari .... am I missing something?
.hentry p label{
border-style:solid;
border-top-left-radius:3px;
border-top-right-radius:3px;
border-bottom-right-radius:3px;
border-bottom-left-radius:3px;
border-width:1px;
border-color:#ffffff;
display: inline;
background: #00c6c6;
padding-left:0px;
padding-top:0px;
color: #fff;
font-style:normal;
text-align:center;
letter-spacing:0.2px;
word-wrap:normal;
padding-right:0px;
margin-left:25px;
margin-right:-13px;
line-height:57.9px;
font-size:21px;
float: left;
}
This float has a warning, but all displays fine when I run it.
.page-id-819 .hentry
label:after,
label:hover, label:active,
input:target, input:hover+label,
input:active+label, input:focus+label
{
background:green !important;
}
FYI this is a radio selection turned to button.
Thanks in advance
Edit. here is the HTML
<form action="" method="get">
<fieldset>
<strong>Amount</strong>
<input id="1" type="radio" name="qty" value="1">
<label for="1">1</label>
<input id="2" type="radio" name="qty" value="2">
<label for="2">2</label>
<input id="3" type="radio" name="qty" value="3">
<label for="3">3</label>
<input id="4" type="radio" name="qty" value="4">
<label for="4">4</label>
</fieldset>
<fieldset>
<strong>state</strong>
<input id="save_now" type="radio" name="now" value="now">
<label for="save_now">Save state now</label>
<input id="save_later" type="radio" name="later" value="later">
<label for="save_later">Save state later</label>
</fieldset>
<input type="submit">
</form>