Answers for "css if is last child change parent style"

CSS
0

apply css on last child in parent div

.parent > *:last-child {
  background-color: red;
}
Posted by: Guest on August-26-2020

Code answers related to "css if is last child change parent style"

Browse Popular Code Answers by Language