I have the following CSS working on my checkbox. How can I add the content attribute to display text over it.
.checkBox .x-form-checkbox {
height: 25px;
width:75px;
background: #9d9d9d;
background-image: -webkit-linear-gradient(top, #9d9d9d, #f3f3f3);
background-image: -moz-linear-gradient(top, #9d9d9d, #f3f3f3);
background-image: -ms-linear-gradient(top, #9d9d9d, #f3f3f3);
background-image: -o-linear-gradient(top, #9d9d9d, #f3f3f3);
background-image: linear-gradient(to bottom, #9d9d9d, #f3f3f3);
font-family: Arial;
color: red;
font-size: 15px;
padding: 10px 20px 10px 20px;
text-decoration: none;
}
.checkBox.x-form-cb-checked.x-form-checkbox {
color:black;
border:1px solid black;
}
I have tried using .checkBox .x-form-checkbox + .checkBox:after{ content: 'text over'; }
but it did not work. Please help