Coder Social home page Coder Social logo

use-all-the-selectors's Introduction

summary time deliverables
A CSS exercise refreshing and teaching about all the different selectors.
30 minutes
1 HTML file, 1 CSS file

Use all the selectors!

Overview

  • Fork this repository.
  • Create a new CSS file named main.css in your css folder—it’s already connected in the HTML.
  • Write the CSS selectors described below and add the requested properties.
  • Double check that it matches the included screenshot.
  • Do NOT change the HTML.
  • Run it through Markbot and make sure it passes all the checks.

CSS selectors

  1. Select body — add background-color: #fdf6e3;
  2. Select header and footer — add font-size: 1.5rem;
  3. Select ul inside nav — add font-family: sans-serif;
  4. Select the logo by class — add text-transform: uppercase;
  5. Select the class wrapper — add background-color: #eee8d5;
  6. Select the IDs contents, favs, facts and types — add color: #93a1a1;
  7. Use a child (or direct descendant) selector to get .dfn inside the wrapper — add background-color: #b58900;
  8. Use an adjacent selector to get the second strong inside .dfn — add color: #fff;
  9. Select all the a tags, but not the a tags with the class of .no-highlight — add background-color: #719e07;
  10. Select the link with rel="external" attribute — add background-color: #2694d8;
  11. Select the first li inside the ol — add color: #719e47;
  12. Select the last li inside the ol — add color: #2aa198;
  13. Select every odd li inside .types — add background-color: #657ba3;
  14. Select every even li inside .types — add background-color: #586e75;
  15. Select every 3rd li inside .types — add background-color: #d04b16;

Goal

Visually match the images in the “screenshots” folder.

  • Final screenshots in the “screenshots” folder.

Hand in

Drop this folder into your Markbot application. Make sure to fix all the errors. And submit to Canvas using Markbot.

use-all-the-selectors's People

Contributors

thomasjbradley avatar michaelarob avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.