Offset any help

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<head>
<style>
h2 {
  position: relative;
  right:15px;
  lef


}
</style>
</head>
<body>
<h1>On Being Well-Positioned</h1>
<h2>Move me!</h2>
<p>I still think the h2 is where it normally sits.</p>
</body>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36 OPR/76.0.4017.123.

Challenge: Move a Relatively Positioned Element with CSS Offsets

Link to the challenge:

Hi @teddy2 !

The key to solving this challenge is reading the test case messages.

Here is the first one
Your code should use a CSS offset to relatively position the h2 10px upwards. In other words, move it 10px away from the bottom of where it normally sits.

The second sentence gives you the answer where you have to use bottom offset.

Here is the second test case message
Your code should use a CSS offset to relatively position the h2 15px towards the right. In other words, move it 15px away from the left of where it normally sits.

The second sentence give you the answer where you have to use the left offset not right.

This is incorrect

Hope that makes sense!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.