Hi all, I'm kinda new to DIVs so bear with me.
I'm trying to get text to appear over an image. Pretty simple stuff, right? That's what I thought.
My HTML:
My CSS:
When I load the page, the text appears at the bottom of the page, under textfield.gif.
Where have I gone wrong?
LINK: subversives.awardspace.com/index2.html
(It's a work-in-progress)
-------------------------
Call me barely Impressive Captain.
I'm trying to get text to appear over an image. Pretty simple stuff, right? That's what I thought.
My HTML:
Code:
<div style="contentContainer" align="center">
<img src="Images/textfield.gif">
<div style="content" align="center" id="Main">
TEXT GOES HERE!
</div>
</div>
My CSS:
Code:
#contentContainer {
position: absolute;
width: 770px;
top: 10px;
z-index: 1;
}
#content {
position: absolute;
top: -700px;
width: 760px;
height: 760px;
overflow: auto;
padding: 5px;
z-index: 10;
}
When I load the page, the text appears at the bottom of the page, under textfield.gif.
Where have I gone wrong?
LINK: subversives.awardspace.com/index2.html
(It's a work-in-progress)
-------------------------
Call me barely Impressive Captain.