Skip to content

Commit e59f8e7

Browse files
committed
Update README.md
1 parent 9ce37f3 commit e59f8e7

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

README.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -677,21 +677,16 @@ The `nth-child()` pseudo-class is used to match an element based on a number, wh
677677
**Example:**
678678

679679
```css
680-
.example :nth-child(5) { background: #ffdb3a; }
680+
.example :nth-child(4) { background: #ffdb3a; }
681681
```
682682

683683
```html
684684
<div class="example">
685-
<p>This is a <em>paragraph</em>.</p>
686-
<p>This is a <em>paragraph</em>.</p>
687-
<p>This is a <em>paragraph</em>.</p>
688-
<div>This is a <em>divider</em>.</div>
689-
<div>This is a <em>divider</em>.</div> <!-- Element to select -->
690-
<p>This is a <em>paragraph</em>.</p>
691-
<p>This is a <em>paragraph</em>.</p>
692-
<div>This is a <em>divider</em>.</div>
693-
<p>This is a <em>paragraph</em>.</p>
694-
<div>This is a <em>divider</em>.</div>
685+
<p>This is a <em>paragraph</em>.</p>
686+
<p>This is a <em>paragraph</em>.</p>
687+
<p>This is a <em>paragraph</em>.</p>
688+
<div>This is a <em>divider</em>.</div> <!-- Element to select -->
689+
<div>This is a <em>divider</em>.</div>
695690
</div>
696691
```
697692

@@ -705,16 +700,11 @@ This number can also be expressed as a function, or using the keywords even or o
705700

706701
```html
707702
<div class="example">
708-
<p>This is a <em>paragraph</em>.</p> <!-- Element to select -->
709-
<p>This is a <em>paragraph</em>.</p>
710-
<p>This is a <em>paragraph</em>.</p> <!-- Element to select -->
711-
<div>This is a <em>divider</em>.</div>
712-
<div>This is a <em>divider</em>.</div>
713-
<p>This is a <em>paragraph</em>.</p>
714-
<p>This is a <em>paragraph</em>.</p> <!-- Element to select -->
715-
<div>This is a <em>divider</em>.</div>
716-
<p>This is a <em>paragraph</em>.</p>
717-
<div>This is a <em>divider</em>.</div>
703+
<p>This is a <em>paragraph</em>.</p> <!-- Element to select -->
704+
<p>This is a <em>paragraph</em>.</p>
705+
<p>This is a <em>paragraph</em>.</p> <!-- Element to select -->
706+
<div>This is a <em>divider</em>.</div>
707+
<div>This is a <em>divider</em>.</div> <!-- Element to select -->
718708
</div>
719709
```
720710

0 commit comments

Comments
 (0)