Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

css checkbox style for border color [duplicate]

Tags:

css

checkbox

I have a check box in my table. this is css of that checkbox

input[type="checkbox"] {
    width: 20px;
    height: 30px;
    margin: auto;
    display: table-row;
    border: 5px solid red;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: 1px;
}

but it shows normal checkbox. I want to change the border color of that checkbox. but it doesn't work!!!

like image 549
chamzz.dot Avatar asked Dec 05 '22 15:12

chamzz.dot


1 Answers

You can put only below css for checkbox border and see Fiddle Demo

CSS:

.error input[type=checkbox] {
  outline: 2px solid #c00;
}
like image 105
Jainam Avatar answered Feb 12 '23 14:02

Jainam