Giter VIP home page Giter VIP logo

css-exercises's Introduction

CSS Exercises

These exercises consist of a series of CSS-related tasks intended to complement the HTML and CSS content on The Odin Project (TOP). They should only be completed when instructed during the course of the curriculum.

When doing these exercises, please use all documentation and resources you need to accomplish them. You are not intended to have any of this stuff memorized at this point. Check the docs, use Google, and do what you need to do (besides checking the solutions) to get them done.

Contributing

If you have suggestions to improve an exercise, ideas for a new exercise, or notice an issue with an exercise, please feel free to open an issue after thoroughly reading our contributing guide.

How To Use These Exercises

  1. Fork and clone this repository. To learn how to fork a repository, see the GitHub documentation on how to fork a repo.
    • Copies of repositories on your machine are called clones. If you need help cloning to your local environment, you can learn how from the GitHub documentation on cloning a repository.
  2. Go to an exercise directory and open the HTML file in a web browser. You can open the file directly or use something like VSCode's Live Server extension.
  3. For each exercise, read the README thoroughly before starting any work.
    • Each README has a "Self Check" list. Use this to ensure you haven't missed any important details in your implementation.
  4. Make your edits in the index.html and/or the style.css files in order to make the output in your browser look like the Desired Outcome image(s).
    • Depending on the instructions of the exercise, you may only need to make edits in one of these files.
  5. Once you successfully finish an exercise, check TOP's solution to compare it with yours.
    • You should not be checking the solution for an exercise until you finish it!
    • If your solution differs wildly from TOP's solution (and still passes the exercise's requirements), that's completely fine. Do feel free to ask about it in our Discord if there are parts you do not understand.
  6. Do not submit your solutions to this repo, as any PRs that do so will be closed without merging.

Some Hints

  • The official solutions put all changes at the end of the CSS file, which may duplicate some selectors (e.g. there might be a body {} in the given CSS and another body {} in the solution). When you are working on an exercise, it is best practice to add your CSS to existing selectors instead of duplicating them at the end of the file. We're sacrificing this best practice in our official solutions to make it extra clear to you what things we changed to solve the exercise.
  • Unless listed in the self-check section, do not worry about getting the exact pixel value for things like margin, padding and font size. These exercises are intended to test your knowledge of CSS, not your ability to guess that a screenshot is using font: sans-serif bold 16px or that the margin is exactly 42px.
  • You may need to add some elements to your HTML to get things into the right spot. (For the first few exercises, we make it explicit when this needs to happen.)
  • You may need to add more selectors to your CSS file. The first few exercises have almost everything already done for you, but as you progress, you'll find that you need to add more and more selectors to get the correct result.

css-exercises's People

Contributors

thatblindgeye avatar codyloyd avatar dm-murphy avatar amandasilvbr avatar programmurr avatar msespos avatar scheals avatar christinamakes avatar micosaur avatar kevinmulhern avatar kashura avatar couchoftomato avatar acb123web avatar dotarjun avatar marvingay avatar suvansarkar avatar zebramilk avatar manonlef avatar zhna123 avatar snakegandhi avatar zekumoru avatar shepleysound avatar rog2054 avatar monkeyblues avatar maoshizhong avatar kesava-karri avatar khhuang7 avatar jonathanrmartinezhernandez avatar jernestmyers avatar linglejack06 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.