HTML and CSS Reference
In-Depth Information
Figure 4.8 Our Styles Conference home page, taking shape after a few updates
The
source
code
for
the
exercises
within
this
lesson
can
be
found
at
ht-
tp://learn.shayhowe.com/html-css/opening-the-box-model/ .
The Universal Selector
In the first step of this exercise we were introduced to the universal selector . In
CSS the asterisk, * , is the universal selector, which selects every element. Rather
than listing every single element imaginable, we can use the asterisk as a catch-all
to select all elements for us.
The :before and :after pseudo-elements also mentioned in this step are ele-
ments that can be dynamically generated with CSS. We're not going to be using
these elements within our project; however, when using the universal selector it's
a good practice to also include these pseudo-elements in case they should ever ap-
pear.
Search WWH ::




Custom Search