docs.rodeo

MDN Web Docs mirror

Challenge solutions

This page provides solutions to the challenges posed in the CSS Styling basics module. These are not the only possible solutions. The sections below correspond to the titles of the tutorial sections.

Cascading and inheritance

The challenges on page Handling conflicts are:

Inherited styles

Later sections of this tutorial describe style rules and declarations in greater detail.

Selectors

The challenges on page Basic selectors are:

Second paragraph blue

Both paragraphs blue

The rules for the other colors all have more specific selectors, so they override the blue of the paragraph.

Readable CSS

Commenting out a rule

Text styles

Big initial letters

Color

Three-digit color codes

Content

The challenges on page are:

Add an image

Lists

The challenges on page Styling lists are:

Lower Roman numerals

Capital letters

Boxes

The challenges on page Boxes are:

Ocean border

Layout

The challenges on page Layout are:

Default image position

Fixed image position

Tables

The challenges on page Tables are:

Borders on data cells only

Media

The challenges on page Media are:

Separate print style file

Heading hover color

JavaScript

Move box to the right

SVG and CSS

Change color of inner petals

In this article

View on MDN