Use css zss index or zIndex javascript style property.
z-index determines the height of the layer. A canvas (usually a body tag) uses the z-index of 0. Everything above is above the body, something below below.
Css example:
<style type="text/css">
.my_layer {
display: block;
position: absolute;
z-index: 10;
top: 10px;
left: 10px;
width: 100px;
height: 100px;
}
</style>
Javascript example:
<script type="text/javascript">
el = document.getElementById("my_div")
with(el) {
style.zIndex = 10;
style.display = "block";
style.position = "absolute";
style.top = "10px";
style.left = "10px";
style.width = "100px";
style.height = "100px";
}
</script>
source
share