Code Monkey home page Code Monkey logo

html-css-selectors-fun's Introduction

CSS Selector Fun

In this exercise you will test your knowledge of CSS selectors.

Open up the index.html file in your browser using LiveServer. Your task is to add CSS rules to styles.css so that each element on the page is styled in the way it describes. For example, the headings say "Make this heading pink" - you need to use CSS to make them pink.

The end result should look like this:

Result

You are not allowed to modify the HTML file in anyway!

Tips

  • You'll need to use a mixture of Tag, Class and ID selectors for this exercise
  • You'll also need to combine selectors for the elements near the bottom of the page.
  • Try to keep your CSS minimal. Do your best to avoid repeating the same style rules
  • The HTML file contains comments that give you a hint for each section
  • Work element by element, one at a time, from top to bottom.
  • You may find that as you progress, new style definitions break previous working elements! If this happens, you might need to make your selectors more specific
  • Remember to use Chrome Developer tools inspector - you can see what specific styles are being applied to what elements. It's an amazingly useful tool.

html-css-selectors-fun's People

Contributors

chrisjs90 avatar mikemherron 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.