An element will be positioned relative to the viewport if its position property is set to ________.

  • Absolute
  • Fixed
  • Relative
  • Static
If an element's position property is set to 'fixed', it will be positioned relative to the browser window. This is useful for creating elements that are fixed in place even when the page is scrolled.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *