Is there a CSS selector that chooses to compliment .a + .b with respect to .a ~ .b ?
In smaller mathematical expressions, I want to select all the sibling elements that succeed in the element, excluding its first sister successor.
For example, in all dl lists, I have all dd elements colored by a specific color. But in inline dl lists I want to keep the first dd following dt in the same color, but all subsequent dd will be changed to a different color. Below is my code, which is clearly not DRY . Is there a way to do this without overriding the color again?
dl > dd { background-color: #c0ffee; } dl.inline > dd { display: inline; background-color: #bada33; } dl.inline > dt + dd { background-color: #c0ffee; }

source share