Всем привет. Я пролистал немного эту ветку форума и решил, что можно поделится и своим решение данной задачи. Очень хотелось бы услышать мнение знатоков и моем решении, так как не ясно какой из способов решения является более здравым (критерий количества строк)
html,
body {
margin: 0;
padding: 0;
}
body {
width: 280px;
min-height: 250px;
padding-top: 50px;
padding-left: 10px;
padding-right: 10px;
font-size: 12px;
font-family: “Arial”, sans-serif;
line-height: 1.2;
color: #7f8c8d;
background: #ecf0f1;
}
.post-stats .icon {
width: 15px;
height: 15px;
background: red;
}
.post {
position: relative;
padding: 0;
margin: 0;
}
.post .post-title {
float: right;
padding: 0 4px 10px 20px;
font-size: 20px;
color: #2980b9;
}
.post .post-date {
width: 45px;
padding: 0 5px;
margin: 0;
line-height: 55px;
text-align: center;
font-size: 15px;
font-weight: bold;
border-bottom: 5px solid #bdc3c7;
background-color: #ffffff;
}
.post .post-type {
width: 55px;
height: 55px;
margin-top: 10px;
border-bottom: 5px solid #bdc3c7;
background:url(/assets/course14/quotes.png) #7f8c8d no-repeat 50% 50%;
}
.post .post-author {
position: absolute;
top: 29px;
left: 75px;
}
.post .post-author a,
.post .post-stats a{
text-decoration: none;
color: #2980b9;
}
.post .post-stats {
left: 95px;
top: -82px;
display: inline-block;
position: relative;
margin-right: 30px;
}
.post .post-stats .icon-tags {
position: absolute;
top: 0px;
left: -20px;
background: url(/assets/course14/post-challenge.png) no-repeat 0 0;
}
.post .post-stats .icon-comments {
position: absolute;
top: 0px;
left: -20px;
background: url(/assets/course14/post-challenge.png) no-repeat -20px 0;
}
.post .post-text {
position: absolute;
top: 62px;
left: 75px;
width: 165px;
padding: 10px 15px 10px 15px;
font-size: 12px;
border-bottom: 5px solid #bdc3c7;
background-color: #ffffff;
}