Clear/Overwrite css for a input element
I have a problem styling my form. Everything wor开发者_Python百科ks fine except the checkboxes. They look very strange. Have a look at the small rectangle, this is how it looks like when I place a checkbox in my html:
<input id="check" type="checkbox" name="test" value="test"/>
The strange thing is, if I remove my css it does not change. Is there a basic css configuration for a checkbox to make it look like a standart checkbox? I tried things like
#check{background: white !important}
but it does not work.
Any other advice?
Is that the default styling from the browser or you have something like
* { margin: 0; padding: 0 }
in your CSS code? If so... than that's what's causing the default behavior to be removed and is very hard to put back.
精彩评论