I have input
of which according to the user's data in its session
it is marked or not. The problem is that even input
has property checked="checked"
, it is not marked.
Code of input
along with div
of which it is:
<div class="no-message">
<input type="radio" id="isgift0" name="isgift" value="0" style="display: none;" class="arredondado" <?php if(Mage::getSingleton('core/session')->getInputMensagem() == 1) echo 'checked="checked"' ?> />
<label for="isgift0"><?php echo $this->__("I do not want to send a message") ?></label>
</div>
In this label
it contains a code that CSS
that uses an image above input
as if it were the same, but this does not interfere with anything in functionality.
Códgio CSS
:
input[type="radio"].arredondado:not(checked) + label:before {
content: "...";
display: inline-block;
margin-top: -2px;
vertical-align: middle;
margin-right: 10px;
background: url(../../images/icons.png) no-repeat -53px -529px;
width: 22px;
height: 23px;
color: transparent;
border-radius: 0 !important;
border: none !important;
}