<html lang="ru">
<head>
<meta charset="utf-8">
<title>Рейтинг</title>
</head>
<body>
<div class="rating" onmousedown="return false">
<div class="index">9691</div>
<div class="voting">
<div class="minus">-</div>
<div class="karma">6</div>
<div class="plus">+</div>
</div>
</div>
</body>
</html>
body {
body {
margin: 10px;
}
.rating {
background-color: #909497;
border-radius: 4px;
color: white;
font: 1.2em serif;
height: 40px;
min-width: 400px;
overflow: hidden;
text-align: center;
}
.index {
background-color: #A3C741;
float: left;
line-height: 40px;
width: 120px;
}
.voting {
float: right;
width: 120px;
}
.minus,
.karma,
.plus {
display: inline-block;
height: 24px;
line-height: 24px;
margin: 8px 2px;
width: 24px;
}
.minus,
.plus {
border-radius: 4px;
box-shadow: 0 0 2px 0 black;
cursor: pointer;
font: bold 1.1em sans-serif;
}
.minus {
background-color: #B63636;
}
.plus {
background-color: #9DC538;
}
.minus:active,
.plus:active {
box-shadow: inset 0 0px 3px 0 black;
}