So, i'm trying to create these divs to be a preview of an article. I've got a container div with a nested div inside alongside a header element with the article title.
I'm using some jQuery fading to hide the image on mouseover and reveal the title, but I'm having problems with the title not staying inside the div....or rather being forced out of my specified height due to the image. I've tried some z-indexing, absolute/relative positioning but no luck.
Any suggestions?
link
relevant css:
<style type="text/css">
h2 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
color: #e4e4e4;
font-size: 16px;
line-height: 16px;
margin: 3px;
}
h2 a, h2 a:link, h2 a:visited {
color: #e4e4e4;
text-decoration: none;
}
h2 a:hover {
color: #e4e4e4;
text-decoration: none;
}
.sectionTeaserListing {
background: #717073;
border: 3px solid #4b4a4d;
height: 80px;
width: 625px;
margin: 10px;
}
.sectionTeaserListing h2 a {
color: #e4e4e4;
}
div.teaserImageOverlay {
position: relative;
top: 0px;
left: 0px;
z-index: 10;
}
</style>