Clickable Links and the CSS Cascade

In this session we'll dig deeper into colour and build a Call to Action button out of a link.

Housekeeping


1. Colour models and you

Colour models

Materials


2. Clickable Links

Hyperlinks

Materials


3. Inspecting the CSS Cascade

CSS Cascade


  1. Define a colour palette;
    • Try the 60-30-10 rule;
    • Convert your colours to hsl();
  2. Create a simple Call-to-Action with a paragraph and link;
  3. Remove the underline with text-decoration;
  4. Make the link more “buttony” with padding;
    • optional: add a border and/or round the corners with border-radius;
  5. Double-check your colour contrast;
  6. Define a complimentary colour for the link :hover and :visited states;
  7. Choose a contrasting colour for the link :active state.

Today's Achievement

Call-to-Action

Submit links to the work you completed in today’s activity:

  • GitHub repo
  • GH Pages live link

Lesson Prep

Reading list

Watch List