javascript - Html5: add image to a parent div and keep the child div images visible -
i have html5 code. has parent div, , 2 child div. parent div takes whole page , each child div takes half page. add images left div , right div. need add image parent div , keep images on both left , right child divs visible, i. e want images super imposed , visubale. easiest way of doing this?
code this:
<div id="parent"... > <div id="leftchild">... </div> <div id="rightchild">... </div> </div>
something this? http://moody.es/nons/kek.html
view page source see code.
the parent image has position: absolute;
, i've set children's <img>
have z-index: 1;
. when using z-index, element in question must positioned, hence position: relative;
Comments
Post a Comment