Hey I'm having a bit of a weird problem.
I have an image contains in a div (#rel-content) and that div inside of another (#releases). Here is my HTML code:
<div class="releases">
<div id="rel-topbar"><img src="images/blackrightbar.jpg" width="312" height="39" alt="Release Navigation Bar">
</div> <!-- rel-topbar -->
<div id="rel-content"><a href="http://itunes.apple.com/gb/album/erased/id377011296?uo=4" target="itunes_store" ><img src="images/album-cover.jpg" width="300" height="300" alt="Hope of the Hated - Erased Album Cover" style="border-style: none" /></a>
<h2><span>Buy The Album:<br/ >Available now on iTunes!</span></h2>
</div> <!-- rel-content -->
</div><!-- releases -->
As you can see inside #rel-content I have an image and a header inside. What I want is the header (h2) to overlap the image. Whereas what I'm receiving is the header flying to the other side of the page.
Here is my CSS for the div's:
#rel-content{
margin: 10px 0px 10px 5px;
}
#rel-content img{
position: relative;
width:100%;
}
#rel-content h2{
position:absolute;
top:200px;
left:0;
width:100%;
display:block;
}
#rel-content h2 span{
color:white;
font: bold 24/25px Helvetica, Sans-serif;
letter-spacing: -1px;
background: rgb(0, 0, 0);
background: rgba(0, 0, 0, 0.7);
padding:10px;
}
Here is an image of what is showing up:
[IMG]http://i55.tinypic.com/5yg7wg.png[/IMG]
http://i55.tinypic.com/5yg7wg.png
I hope this makes sense as to what I'm trying to achieve. Really appreciate any responses.
Reece Cropley