I have a table which a column of this table is only radio boxes. I want to style the radio box with the following images: http://i66.tinypic.com/28ipw1s.png http://i64.tinypic.com/2ur1b88.png
or just style it so it will look normal and not the default styling of the browser.
The problem is that the solution for display the images above can be achieve by using labels and labels take space in the table which I don't want to give up.
This is my table:
I can't add any labels and I don't want any label next to my radiobox. This is the solution which I am familiar which doesn't work with empty labels.
input[type="radio"]{
width: 28px;
margin: 0;
padding: 0;
opacity: 0;
}
input[type="radio"]+label{
display: inline-block;
padding-left: 28px;
line-height: 24px;
background: url(http://i66.tinypic.com/28ipw1s.png) no-repeat 0 0;
}
input[type="radio"]:checked + label{
background: url(http://i64.tinypic.com/2ur1b88.png) no-repeat 0 0;
}