⇦ Back

WDX-180

Web Development X

Fundamental CSS Comprehension

The final step before you move on is to attempt the assessment for the module — this involves a number of related exercises that must be completed in order to create the final design — a business card/gamer card/social media profile.

Objective: To test comprehension of fundamental CSS theory, syntax and mechanics.

Starting point

To get this assessment started, you should:

Project brief

You have been provided with some raw HTML and an image, and need to write the necessary CSS to style this into a nifty little online business card, which can perhaps double as a gamer card or social media profile. The following sections describe what you need to do.

Basic setup:

Taking care of the selectors and rulesets provided in the CSS resource file:

New rulesets you need to write:

Note: Bear in mind that the second ruleset sets font-size: 10px; on the <html> element — this means that for any descendants of <html>, an em will be equal to 10px rather than 16px as it is by default. (This is of course, provided the descendants in question don’t have any ancestors sitting in between them and <html> in the hierarchy that have a different font-size set on them. This could affect the values you need, although in this simple example this is not an issue.)

Other things to think about:

Hints and tips

Example

The following screenshot shows an example of what the finished design should look like:

A view of the finished business card, show a reader header and footer, and a darker center panel containing the main details and image.


Project maintained by in-tech-gration Hosted on GitHub Pages — Theme by mattgraham