UNDER CONSTRUCTION

I am currently re-writing this page: use the refresh button in your browser to see if it's finished, yet.

Week 10: CSS Combinators, Lists, Tables

In this lesson you'll learn how to create complex selectors by using combinators and pseudo selectors. You will then learn to use those selectors to add interesting styles to lists and tables. You'll also learn a few new properties that are specific to lists and tables.

Combinators and Pseudo Seledtors

Notes

List and Table Styling

Notes

Resources

Homework

Practice/Study Questions

Practice Exercises

Note
In the practice exercises, elements are referred to in all-caps, e.g. FOOTER refers to the <footer></footer> element (or it could also refer to an opening <footer> tag or closing </footer> tag, you will know by the context in which it's used).

For each exercise, validate the HTML using the HTML Validator. Fix all problems until you get no errors.

  1. If you haven't already done so, create a sub-directory in your local workspace and in your server workspace (off /syst10049) called "week9". Feel free to add an extra level for all of your practice exercises (e.g. /exercises).
    • For each practice exercise in each lesson, you'll usually be asked to create an exercise directory for that project, such as "/exercise1".
    • It is assumed that you will create the exercise project directory in both your local workspace and in your server workspace using the appropriate and standard directory structure discussed in class.
  2. Combinators: Go to this Codepen and follow the instructions in the CSS comments.
  3. Combinators: Go to this Codepen and follow the instructions in the CSS comments.
  4. Pseudo Classes: Go to this Codepen and follow the instructions in the CSS comments.
  5. Pseudo Classes: Go to this Codepen and follow the instructions in the CSS comments.
  6. List Styles: Go to this Codepen and and follow the instructions in the CSS tab.
  7. List Styles and Counters: Go to this Codepen and add the necessary styles to create nested lists similar to this:
    nested lists with the numbers formatted inside
                       boxes with background colours and borders
  8. Table Styles: Go to this Codepen and follow the instructions in the CSS tab.
  9. Table Styles and Pseudo Classes: Go to this Codepen and follow the instructions in the CSS comments.
  10. Table Styles and Pseudo Classes: Go to this Codepen and follow the instructions to create a checkerboard like this:
    a table styled like a checkerboard
  11. Pseudo Classes and Tables: this Codepenand follow the instructions in the CSS comments.