Offset of image

Tell us what’s happening:

Your code so far


<head>
<style>
 h2 {
   position: relative;
top offset:10px;
bottom offset:10px;
right offset:15px;
left offset:15px;
 }
</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.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36.

Challenge: Move a Relatively Positioned Element with CSS Offsets

Link to the challenge:

offset isn’t a property in itself so remove “offset” from your declarations. You can offset something by using position: relative and top/bottom/left/right, as necessary.

Remember, you only want to offset from the bottom and the left for this challenge.

Hopefully this helps steer you toward the solution.

thanks, after i posted it i discovered that offset shouldn’t be there.