Lock an Element to its Parent with Absolute Positioning

Lock an Element to its Parent with Absolute Positioning
0.0 0

#1

Not sure why this code is not running through my browser - pretty sure this is correct code:

Your code so far


<style>
  #searchbar {
    postion: absolute;
    top: 50px; 
    right: 50px; 
    
  }
  section {
    position: absolute;
  }
</style>
<body>
  <h1>Welcome!</h1>
  <section>
    <form id="searchbar">
      <label for="search">Search:</label>
      <input type="search" id="search" name="search">
      <input type="submit" name="submit" value="Go!">
    </form>
  </section>
</body>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/lock-an-element-to-its-parent-with-absolute-positioning


#2

Only ONE of section and #searchbar needs position: absolute. Reread the instructions and see if you can figure out which one.

That should do the trick.