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

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -