How can I make two elements overlap in CSS, e.g.
<div>Content 1</div>
<div>Content 2</div>
I would like the two contents (they can be anything) to overlap, so Content 2 is displayed starting at the same top left corner as Content 1 and they appear overlapped. Content 1 should begin in the normal flow of the document and not at some fixed position on the screen.
Is this possible?
Thanks,
AJ
the easiest way is to use
position:absoluteon both elements. You can absolutely position relative to the page, or you can absolutely position relative to a container div by setting the container div toposition:relative