Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can modify the border color of a checkbox input using CSS by targeting the checkbox element and setting the border-color property.

For example, if you want to set the border color to red for all checkbox inputs, you can use the following CSS code:

input[type="checkbox"] {
  border-color: red;
}

Alternatively, if you want to target a specific checkbox input, you can use a class or ID selector to target the element. For example:

<input type="checkbox" class="my-checkbox">

.my-checkbox {
  border-color: blue;
}

This will set the border color of the checkbox with the my-checkbox class to blue.