<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script>
$(document).ready(function() {
$(".message").hover(function() {
if(!$(this).find('input:checkbox').is(':checked')){
$(this).addClass("mail-hover");
$(this).find('.dropDownButton').find('img').css("visibility","visible");
}
},function(){
$(this).removeClass("mail-hover");
$(this).find('.dropDownButton').find('img').css("visibility","hidden");
});
});
</script>
<style>
div{margin:0;padding:0;display:block;}
input {margin:0;padding:0; display:block;}
* { font-family:Verdana, Geneva, sans-serif; font-size:11px;}
.mail_overview { white-space:nowrap;}
.header_description, .message{ position:relative;}
.header_description {font-weight:800; padding-bottom:3px; margin-bottom:5px; border-bottom:1px dashed #e38909; height:20px; line-height:20px;}
.checkbox_desc,.from_desc,.subject_desc,.date_desc{position:absolute;heigth:100%;line-height:22px; padding:0px 3px 0px 3px;}
.checkbox_desc{left:0px; width:26px;padding-left:5px;}
.from_desc {left:26px; width:150px;}
.subject_desc {left:206px; right:61px;}
.date_desc {right:0px; width:61px;padding-right:5px;}
.date_desc, .date { text-align:right;}
.message{height:22px; border:1px solid transparent;width:auto;}
.checkbox,.from,.dropDownButton,.subject,.date{position:absolute;height:22px; padding:0px 3px 0px 3px;}
.checkbox{left:0; width:25px; padding-left:5px;}
.from {left:25px; width:150px; }
.dropDownButton {left:175px; width:30px; line-height:250%;}
.subject {left:205px; right:60px; width:auto;}
.date {right:0px; width:60px; padding-right:5px;}
.mail-hover { border:1px solid #FFB349; background:#FFEEC1}
.mail-select { border:1px solid #e38909; background:#FFEAC0}
</style>
</head>
<body>
<div class="mail_overview">
<div class="header_description">
<div class="checkbox_desc"><input type="checkbox" class="checkbox_header"></div>
<div class="from_desc">Absender</div>
<div class="subject_desc">Betreff</div>
<div class="date_desc">Datum</div>
</div>
<div class="mailheader">
<div class="message" id="mail-1">
<div class="checkbox"><input type="checkbox"></div>
<div class="from">John Doe</div>
<div class="dropDownButton"><img src="img/db.png" style="visibility:hidden"/></div>
<div class="subject">How are you doing?</div>
<div class="date">15:30</div>
</div>
<div class="message" id="mail-2">
<div class="checkbox"><input type="checkbox"></div>
<div class="from">John Doe</div>
<div class="dropDownButton"><img src="img/db.png" style="visibility:hidden"/></div>
<div class="subject">How are you doing?</div>
<div class="date">31.12.10</div>
</div>
<div class="message" id="mail-3">
<div class="checkbox"><input type="checkbox"></div>
<div class="from">John Doe</div>
<div class="dropDownButton"><img src="img/db.png" style="visibility:hidden"/></div>
<div class="subject">How are you doing?</div>
<div class="date">31. Mar.</div>
</div>
</div>
</div>
</body>
</html>