• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

TheOdinProject/css-exercises

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

TheOdinProject/css-exercises

开源软件地址:

https://github.com/TheOdinProject/css-exercises

开源编程语言:

HTML 63.8%

开源软件介绍:

CSS Exercises

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

When doing these exercises, please use all the 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, do what you need to do (besides checking the solutions) to get them done.

Contributing

If you have a suggestion to improve an exercise, an idea for a new exercise, or notice an issue with an exercise, please feel free to open an issue after thoroughly reading our contributing guide in our main TOP repo.

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 your browser. You can either 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 make sure 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!
    • Keep in mind that TOP's solution is not the only solution. If your solution differs wildly from TOP's solution (and still passes the self-check criteria), feel free to ask about it in the chatroom.
  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 to get the correct result.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap