Applied Visual Design: Change an Element's Relative Position

Applied Visual Design: Change an Element's Relative Position
0

#1
 <style>
  h2 {
  position: relative;
}
</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> 

Is my written code, but I am still stuck regardless of what I try to bypass this bug.


#2

can you add a link to the challenge?
Also please fix your code above by adding it inside a code block like this
```
put code here
```


#3

ofc :slight_smile: https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/change-an-elements-relative-position


#4

Can’t do anything to get through it, so any help is much appreciated so I can continue my code adventure


#5

Besides relative position, you need to position h2 element 15px from the top. It says that in requirements.


#6

wow - I completely misread that 666 times. Thank you lmao. facepalm


#7

Greetings, for the challenge it is not enough to establish the relative position, you also need to move the h2, 15px away from the top, in this way:

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