d
Amit DhamuSoftware Engineer
 

Target Nth Child in CSS

1 minute read 00000 views

The following selector will assign a red border to the first element with the class .box

.box:nth-of-type(1) {
  border: 1px solid #fe0000;
}