I have this CSS:
#allStuff > div > div > div > div:nth-child(2) > div > div > div > h3:nth-child(3) {
border-top:1px solid #ffffff6b;
padding-top:8px;
}
#allStuff > div > div > div > div:nth-child(3) > div > div > div > h3:nth-child(3) {
border-top:1px solid #ffffff6b;
padding-top:8px;
}
#allStuff > div > div > div > div:nth-child(4) > div > div > div > h3:nth-child(3) {
border-top:1px solid #ffffff6b;
padding-top:8px;
}
#allStuff > div > div > div > div:nth-child(5) > div > div > div > h3:nth-child(3) {
border-top:1px solid #ffffff6b;
padding-top:8px;
}
The only difference is the first nth-child(x)
; what's to correct way to create this selector so that I can only create a single selector to cover all of them?
i.e. something similar to this (which I know is wrong, but demonstrates what I mean):
#allStuff > div > div > div > div:nth-child(*) > div > div > div > h3:nth-child(3) {
border-top:1px solid #ffffff6b;
padding-top:8px;
}