Log in

View Full Version : How can I make a div go on top of another div?



Johnnymushio
03-27-2011, 12:14 AM
http://japantown.awardspace.com/divdesign.shtml

Do you see that changing text? I want to move that div up to the header image right under the navigation bar.

I know it has something to do with absolute positioning, or z-axis.

If it is a simple thing to do, please help, thanks.

Johnnymushio
03-27-2011, 12:24 AM
actually, i need to revise that question.

although the div is now moved up, the space where it was originally is still there, pushing the "welcome" image down. how would i get rid of that space?

azoomer
03-27-2011, 12:47 AM
try this css instead


#contentwrapper {
color: #FFFFFF;
font-family: arial;
font-size: 14px;
height: 25px;
left: 25px;
margin-bottom: 0;
margin-left: 25px;
margin-right: 25px;
margin-top: -42px;
position: relative;
width: 800px;
}