css - replace checkbox with unicode character -
i trying replace unchecked checkboxes following unicode character: ☐ or ◻
i tried doing making checkboxes' content property unicode character, doesn't seem working.
here css style tried above with:
.question input[type='checkbox']{ background:none; content:◻; cursor:pointer; }
how can replace checkbox or hide , in place have unicode character?
here jsfiddle trying this: http://jsfiddle.net/mnsav/
example :before
.question input[type='checkbox'] + label:before { content:"◻"; } .question input[type='checkbox']:checked + label:before { content:"✓"; } .question input[type='checkbox'] { display:none; }
Comments
Post a Comment