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.
Lorum Ipsum
Text Generator - there are other ones, I like this one. Feel free
to use a different one. Generates filler text for web pages. There
are even some funny ones.
Homework
Practice/Study Questions
Complete
this week's worksheet.
Note that worksheets can be completed during class or after class.
They can be completed using your own lecture notes or from the provided
materials. Worksheets are not directly graded, but the questions might
appear on exams and other evaluations. Ask the professor if you would
like feedback on your worksheet (you must make an attempt on the
worksheet in order to receive feedback).
Answer the following questions where you take your
class notes (form your answers using YOUR OWN WORDS; you might have
to search for answers in the resources above).
Feel free to DISCUSS the answers with your classmates.
What are combinators? What are the 4 combinators and
what does each one do?
What are psuedo elements used for? What are pseudo classes
used for?
What's the difference between
:last-child/first-child and
:last-of-type/first-of-type?
What's the difference between
p:first-child
and p :first-child?
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.
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.
Combinators: Go to this Codepen and follow
the instructions in the CSS comments.
Combinators: Go to this Codepen and follow
the instructions
in the CSS comments.
Pseudo Classes: Go to this Codepen and
follow
the instructions in the CSS comments.
Pseudo Classes: Go to this Codepen and
follow
the instructions in the CSS comments.
List Styles: Go to this Codepen and
and follow the instructions in the CSS tab.
List Styles and Counters: Go to this
Codepen and add the necessary
styles to create nested lists similar to this:
Table Styles: Go to this Codepen
and follow the instructions in the CSS tab.
Table Styles and Pseudo Classes: Go to this
Codepen and follow the instructions
in the CSS comments.
Table Styles and Pseudo Classes: Go to this
Codepen and follow the instructions to create
a checkerboard like this:
Pseudo Classes and Tables: this Codepenand
follow the instructions in the CSS comments.