Artboard article
- CSS-Tricks (2021)

The position property can help you manipulate the location of an element

Values

static: every element has a static position by default, so the element will stick to the normal page flow. So if there is a left/right/top/bottom/z-index set then there will be no effect on that element.

relative: an element’s original position remains in the flow of the document, just like the static value. But now left/right/top/bottom/z-index will work. The positional properties “nudge” the element from the original position in that direction.

absolute: the element is removed from the flow of the document and other elements will behave as if it’s not even there whilst all the other positional properties will work on it.

fixed: the element is removed from the flow of the...

Show More
saved by: FoundryBase
updated 16 days ago
Visibility: Public (all visitors)
CODING  


Comments

No comments yet. Be the first to comment!

MORE RESOURCES FROM SOURCE

More in FoundryBase from   CSS-Tricks

Related Chunks

Related chunks with this resource

This Article can be found in 1 chunk