Добрый день. у меня просьба как у автора.
Кому не лень посмотрите что не так.
Суть: во многих испытания набираю 100%, но не получается выполнить условие: “Все размеры, отступы, координаты, размеры шрифтов (не заданные в body) кратны 5 или 10.”. Есть ощущение, что мой код не оптимальный и в нем задействованы костыли.
Для быстрого поиска: у класса post-stats внутренний отступ справа 14px. Если поставить 15 px то не попадаю в образец.
Сам код:
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;
}
a {
color: #2980b9;
text-decoration: none;
}
.post {
position: relative;
padding-left: 75px;
}
.post-title {
margin-bottom: 5px;
font-size: 20px;
color: #2980b9;
}
.post-date {
position: absolute;
top: 0;
left: 0;
width: 55px;
height: 35px;
padding-top: 20px;
border-bottom: 5px solid #bdc3c7;
background-color: #ffffff;
text-align: center;
line-height: 15px;
font-size: 15px;
font-weight: bold;
}
.post-type {
position: absolute;
top: 70px;
left: 0;
width: 55px;
height: 55px;
border-bottom: 5px solid #bdc3c7;
background: url("/assets/course14/quotes.png") no-repeat 50% #7f8c8d;
}
.post-author {
margin-bottom: 5px;
}
.post-stats {
display: inline-block;
float: left;
position: relative;
padding-left: 20px;
padding-right: 14px;
}
.post-stats .icon {
position: absolute;
top: 0;
left: 0;
width: 15px;
height: 15px;
}
.icon-tags {
background: url("/assets/course14/post-challenge.png") no-repeat;
}
.icon-comments {
background: url("/assets/course14/post-challenge.png") no-repeat -20px 0;
}
.post-text {
clear:both;
padding: 10px 15px;
border-bottom: 5px solid #bdc3c7;
width: 165px;
background-color: #ffffff;
}