Home › Forums › CSS › The Best way to Position Elements? › Re: The Best way to Position Elements?
July 29, 2011 at 8:44 pm
#84245
Member
@TheDoc The default position for elements is static. You can’t use top, bottom, left or right with static though. Also, static elements won’t contain absolutely positioned elements and z-index won’t work on a statically positioned element. You need to set position: relative; for all that to work. In regards to the flow of the document, static and relative are the same.
This is a great read on the topic: http://www.alistapart.com/articles/css-positioning-101/