0
I have a input
of which according to user data in your session
it comes marked or not. The problem is that even the input
owning checked="checked"
, he doesn’t come marked.
Code of input
together with the div
of which he 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 that label
contains a code that CSS
that uses an image above the input
as if it were the same, but this does not interfere in the functionality.
Codice 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;
}
It didn’t work out, no
input
continues not to come checked... and nor is the issue ofdisplay: none
, because I have alabel
containing abefore
in theCSS
with an image referring toinput
. Inspecting the code and giving adisplay: block
in theinput
, he doesn’t come checked.– Matheus Portela
Try to edit the question then with more details, then try to help
– arllondias
I updated the question with some more information.
– Matheus Portela
It’s still a little confusing for me, but I put the image instead of the background in the content and removed the color, I will edit there as I left the class, but I do not know if it is correct, if you want to post all css. to see if there’s nothing about writing.
– arllondias
I believe the mistake is not
CSS
, for even theinput
coming with the propertychecked="checked"
, he doesn’t come checked.– Matheus Portela