diff --git a/README.md b/README.md index 576540e..8b12f15 100644 --- a/README.md +++ b/README.md @@ -470,20 +470,30 @@ The HTML: Here is the CSS: ```css -/* Style the direct sibling anchor tag when a list item is hovered */ -ul li:hover + a { - color: red; +/* The following example selects the first p element that immediately follows a div, and share the same parent: */ +div + p { + background-color: yellow; } ``` The HTML: ```html -
Paragraph 1 in the div.
+Paragraph 2 in the div.
+Paragraph 3. After a div. This will be selected
+Paragraph 4. After a div.
+ +Paragraph 5 in the div.
+Paragraph 6 in the div.
+Paragraph 7. After a div. This will be selected
+Paragraph 8. After a div.
``` ### Case Study: Practical Applications