Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Apply Relative Positioning | Mastering CSS Positioning
CSS Layout, Effects, and Sass

bookChallenge: Apply Relative Positioning

メニューを表示するにはスワイプしてください

Note

Each challenge in this course includes a code sample consisting of index.html and index.css files. As the course focuses on learning CSS, it is recommended to address the challenges in the index.css file. Once a challenge is completed, click the "Run Code" button to view the live page and ensure the challenge was solved correctly.

Moreover, each challenge provides "Hint" and "Solution" buttons. Clicking the "Hint" button will display hints relevant to the current task, while the "Solution" button will reveal the code sample with the correct application of CSS.

Task

  1. Add relative positioning to the second element with the item class name.
  2. Move the item 30px down and 50px left.
index.html

index.html

index.css

index.css

copy
  1. Move down by setting a positive value for the top property.
  2. Move left by setting a negative value for the left property.
index.html

index.html

index.css

index.css

copy

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  3

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 2.  3
some-alt