Is it possible to set a parents height in CSS, depending on the amount of children the element has?
Like:
.parent:has-1-children {
height: 60px;
}
.parent:has-2-children {
height: 110px;
}
.parent:has-3-children {
height: 160px;
}
Or simply:
.parent {
height: calc(this.children() * 50px + 10px);
}
?