TheOdinProject / css-exercises

MIT License
1.55k stars 63.82k forks source link
hacktoberfest

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.

[!IMPORTANT] We encourage you to practice your git skills by committing your changes and pushing them to your own fork. However, please DO NOT open a Pull Request to have your solutions merged into this repo or to show your solution. If we were to merge your changes the exercises would no longer be available as intended for new learners, and opening a PR only causes additional work for us, as we have to close it without merging.

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.

[!IMPORTANT] Do not submit your solutions to this repo, as any PRs that do so will be closed without merging.

Some Hints