Change an Element's Relative Position

Tell us what’s happening:
I am trying to use a CSS offset to move it 15 pixels away from the top of where it sits in the normal flow but i have failed to.

Your code so far


<style>
  h2 {
  position:relative;
  text-indent: 15px;  
    
  }
</style>
<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 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/change-an-elements-relative-position

h2 { position: relative; top: 15px; }

On Being Well-Positioned

Move me!

I still think the h2 is where it normally sits.

1 Like

Thanks alot for the help

Welcome, keep coding, keep learning.