Learn More About CSS Pseudo Selectors by Building A Balance Sheet - Step 40

Tell us what’s happening:

The last part of your table heading is your years. Create a #years selector, and enable flexbox. Justify the content to the end of the flex direction, and make the element sticky. Fix it to the top of its container with top: 0.

Your code so far

<!-- file: index.html -->

/* file: styles.css */
/* User Editable Region */

#year {
  display: flex;
  justify-content:flex-end;
  position:sticky;
  top:0;
}

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn More About CSS Pseudo Selectors by Building A Balance Sheet - Step 40

It’s years not year.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.