LJackson
02-26-2009, 05:12 PM
Hi all,
i am struggling with my divs at the moment i have a small image and next to it some text but if the text happens to go behind the image it goes behind, how do i set it so that it goes infront of the image
see here (http://www.kernow-connect.com/Website/electronics.php) the amazon top item title is partly under the image.
here is my css for the two divs
.inditemheader {
font-size:14px;
height:30px;
width:178px;
float:left;
text-align:center;
margin-left:60px;
margin-bottom:15px;
z-index:2;
.indtopitemimg {
position:absolute;
width:70px;
height:50px;
float:left;
z-index:1;
}
}
i've tried changing the z-index around with no success, the inditemheader is the one i want on top.
cheers
Luke
i am struggling with my divs at the moment i have a small image and next to it some text but if the text happens to go behind the image it goes behind, how do i set it so that it goes infront of the image
see here (http://www.kernow-connect.com/Website/electronics.php) the amazon top item title is partly under the image.
here is my css for the two divs
.inditemheader {
font-size:14px;
height:30px;
width:178px;
float:left;
text-align:center;
margin-left:60px;
margin-bottom:15px;
z-index:2;
.indtopitemimg {
position:absolute;
width:70px;
height:50px;
float:left;
z-index:1;
}
}
i've tried changing the z-index around with no success, the inditemheader is the one i want on top.
cheers
Luke