Hmmmm...also im Großen und Ganzen funktioniert´s ja wunderbar, aber irgendwie ist die grau Leiste die dann *hochfährt* leider ein klein wenig zu schmal und schliesst auch nicht richtig mit dem Bildende unten ab... hier:
http://jsfiddle.net/CmAjQ/24/ passt´s komischerweise...
Sobald ich aber dann das ganze in den Quelltext mit einbaue, dann ist´s verschoben. Woran könnte das denn liegen...?
Hier mal der Quelltext - vielleicht habe ich ja was übersehen ?!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Effekt</title>
<style type="text/css">
/* <![CDATA[ */
.image-wrapper {
border:3px solid #EEE;
position:relative;
width:305px;
height:150px;
overflow:hidden;
}
.image-wrapper > img {
display:block;
}
.image-wrapper > .image-details {
position:absolute;
left:0px;
right:0px;
bottom:0px;
height:50px;
line-height:50px;
background:#000;
color:#fff;
opacity:.7;
}
/* ]]> */
</style>
</head>
<body>
<div class="image-wrapper">
<img src="http://www.bilderkiste.org/show/original/5132408221985/aktuelles_305x150px.png" alt="" />
<p class="image-details">
» <a href="#">Erfahren Sie mehr</a>
</p>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript">
/* <![CDATA[ */
$(function() {
$('.image-details').css('bottom', '-50px').parent().hover(function() {
$(this).find('.image-details').animate({'bottom': '0px'}, 'fast');
}, function() {
$(this).find('.image-details').animate({'bottom': '-50px'}, 'fast');
});
/* ]]> */
</script>
</body>
</html>
Vielen Dank schonmal im Voraus für die Mühen :/...