The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS difference between the absolute and relative attributes in the css

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #35890

    Tell me when we have to use these attributes with some examples?


    Setting an element’s position to relative allows you to use positioning while keeping the element in the document flow. Absolute positioning removes the element from the flow of the document. Each of these have their uses, and I would suggest you experiment with them to learn!


    Check out this site for some great examples.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.