Offsets in HTML and CSS

Tell us what’s happening:
Use CSS offsets to move the h2 15 pixels to the right and 10 pixels up.

Your code so far


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

}
</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 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: Move a Relatively Positioned Element with CSS Offsets

Link to the challenge:

HI @Hanifa_tavassoli!

Welcome to the forum!

The instructions might be a little confusing but your task to move the h2 to the right. So inorder to do that it needs to be 15px from the left moving towards the right.

Same with the 10px moving the h2 up. So 10px up from the bottom going towards the top.

Change these to the opposite of what you originally thought.