Reputation: 1828
I want to select the penultimate element with CSS. The code looks this way:
so I tried this:
.panel-default > [id^=heading]:last-of-type {
border-bottom: 5px solid blue;
}
But with no luck. Any idea how to always select the last "panel-heading" element?
Upvotes: 6
Views: 1362
Reputation: 662
try
.panel-default > *:nth-last-of-type(2) {
border-bottom: 5px solid blue;
}
Upvotes: 6