--- id: 6194034278b71f6940a50d91 title: Step 40 challengeType: 0 dashedName: step-40 --- # --description-- You'll notice that this change has made all of your `.row` elements have the new background color. This is because the `nth-child()` selector looks at the position relative to all element siblings. The `nth-of-type()` selector, however, looks at an element's position relative only to the elements matching the selector in the sibling group. Change your `.row:nth-child(odd)` selector to be `.row:nth-of-type(odd)`, and you should see the difference. # --hints-- You should change your selector to be `.row:nth-of-type(odd)`. ```js assert(new __helpers.CSSHelp(document).getStyle('.row:nth-of-type(2n+1)')); ``` You should not have a `.row:nth-child(odd)` selector. ```js assert(!new __helpers.CSSHelp(document).getStyle('.row:nth-child(2n+1)')); ``` Your `.row:nth-of-type(odd)` selector should have a `background-color` property set to `#dfdfe2`. ```js assert(new __helpers.CSSHelp(document).getStyle('.row:nth-of-type(2n+1)')?.backgroundColor === 'rgb(223, 223, 226)'); ``` # --seed-- ## --seed-contents-- ```html AcmeWidgetCorp Balance Sheet

Assets

Cash $25 $30 $28

This is the cash we currently have on hand.

Checking $54 $56 $53

Our primary transactional account.

Savings $500 $650 $728

Funds set aside for emergencies.

Total $579 $736 $809

Liabilities

Loans $500 $250 $0

The outstanding balance on our startup loan.

Expenses $200 $300 $400

Annual anticipated expenses, such as payroll.

Credit $50 $50 $75

The running balance on our line of credit.

Total $750 $600 $475

Net Worth

Total $-171 $136 $334

``` ```css body { text-align: center; font-family: Tahoma; color: #0a0a23; } #sheet { text-align: left; max-width: 500px; margin: auto; padding: 10px; border: 2px solid #d0d0d5; } #header h2 { font-size: 1.3em; } --fcc-editable-region-- .row:nth-child(odd) { background-color: #dfdfe2; } --fcc-editable-region-- .row { display: flex; justify-content: flex-end; border-bottom: 1px solid #0a0a23; padding: 4px; } span:not(.name) { margin-left: 10px; min-width: 15%; text-align: right; } span[class="current"] { font-style: italic; } .name { width: 100%; text-align: left; } ```