Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div
above another div
It is easy with css, just use display:block
and z-index
property
Here is an example:
HTML:
header
content
CSS:
.wrapper
{
[...]
}
.header
{
[...]
z-index:9001;
display:block;
[...]
}
.content
{
[...]
z-index:9000;
[...]
}
Edit: It is good to set some background-color
to the div-s
to see things properly.