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

Home Forums CSS The Best way to Position Elements? Re: The Best way to Position Elements?


@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: