This is called the adjacent sibling selector, and it is represented by a plus sign…
h1.hc-reform + p {
clear:both;
}
Note: this is not supported in IE6 or older.
More Related Contents:
- Why do browsers match CSS selectors from right to left?
- Why doesn’t nth-of-type/nth-child work on nested elements?
- How can I style even and odd elements?
- Can I write a CSS selector selecting elements NOT having a certain class or attribute?
- Several elements with the same ID responding to one CSS ID selector
- Is there a CSS selector for the first direct child only?
- How to target a specific column or row in CSS Grid Layout?
- CSS :selected pseudo class similar to :checked, but for elements
- Difference in applying CSS to html, body, and the universal selector *?
- How can I correctly select the first or the last child with CSS?
- A CSS selector to get last visible div
- :not(:empty) CSS selector is not working?
- How to exclude particular class name in CSS selector?
- CSS selector with period in ID
- CSS select elements with partial id
- Can a dynamic class be styled using CSS? [duplicate]
- Select first occurring element after another element
- CSS selector for empty or whitespace
- Default :target with CSS
- Is it possible to use CSS vars in CSS3 selectors?
- Select second last element with css
- How do I give a CSS class priority over an id?
- How to run the CSS3 animation to the end if the selector is not matching anymore?
- Is there a css selector for selecting an element futherup in the html?
- How can I target a specific column or row in a CSS grid layout?
- CSS Selector for No-Children-But-Not-Empty
- Hide element, but show CSS generated content
- How to select classes with spaces
- How can I get a specific number child using CSS?
- Why does .class:last-of-type not work as I expect?