Помогите с испытанием анонс поста [18/18]

  1. Как сделать, чтоб иконка, интенсив программа иконка 5 были в одной строчке?
    Если удалить строчки 19-20 из HTML-кода, то все становится в одну строку.

  2. Как эту строку центрировать по вертикали? Почему-то vertical-align: middle; не работает.

    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-date{
    font-size: 15px;
    font-weight:bold;
    line-height:55px;
    vertical-align: middle;
    text-align:center;
    border-bottom:5px solid #bdc3c7;
    position:absolute;
    top: 50px;
    width: 55px;
    height: 55px;
    background:white;
    }
    .post-type{
    width: 55px;
    height: 55px;
    background:#7f8c8d url("/assets/course14/quotes.png") no-repeat 50% 50%;
    position:absolute;
    top:120px;
    border-bottom:5px solid #bdc3c7;
    }
    .post-title{
    color:#2980b9;
    font-size: 20px;
    position:relative;
    margin-left: 75px;
    }
    .post a{
    text-decoration:none;
    color:#2980b9;
    }
    .post-author{
    position:relative;
    margin-left: 75px;
    font-size: 11px;
    margin-top:5px;
    margin-bottom:5px;
    }
    .post-stats{
    position:relative;
    margin-left: 75px;
    font-size: 12px;
    display:inline-block;
    }
    .post-stats a{
    display:inline-block;
    height: 15px;
    line-height:15px;
    vertical-align: middle;
    }
    .post-stats .icon {
    width: 15px;
    height: 15px;
    display:inline-block;
    }
    .post-stats .icon-tags{
    background: url("/assets/course14/post-challenge.png") 0 0;
    }
    .post-stats .icon-comments{
    background: url("/assets/course14/post-challenge.png") -20px 0;
    }
    .post-text{
    width: 175px;
    position:relative;
    background:white;
    margin-left: 75px;
    font-size: 12px;
    padding:10px 15px;
    border-bottom:5px solid #bdc3c7;
    }

Не в одну строку, потому что у последнего маргин слева. По мне так, неправильно выбран метод. Я бы дал маргин слева всему блоку и относительно его уже бы позиционировал дату и иконку. А потом бы уже топал дальше.

А зачем по вертикали строку центрировать, даешь выравнивание иконкам, текст и так на месте.

Вот моя версия. в коде было тоже изменение. разделил post-stat на 1 и 2 иначе с отступами проблема была.
в итоге 100%

.post {
position:relative;
}
.post-title {
font-size:20px;
color:#2980b9;
margin-left:75px;
margin-bottom:5px;
}
.post-date {
position:absolute;
top: 0px;
width: 55px;
height: 55px;
font-size: 15px;
font-weight:bold;
line-height:55px;
vertical-align: middle;
text-align:center;
border-bottom:5px solid #bdc3c7;
background:white;
}
.post-type {
position:absolute;
width:55px;
height:55px;
top:70px;
left:0px;
background:#7f8c8d url("/assets/course14/quotes.png") no-repeat 14px 16px;
border-bottom:5px solid #bdc3c7;
}
.post-author {
margin-left:75px;
margin-bottom:5px;
}
a {
color:#2980b9;
text-decoration:none;
}
.post-text {
margin-left:75px;
margin-top:18px;
width: 175px;
height: 98px;
padding: 10px 15px;
background:white;
border-bottom:5px solid #bdc3c7;
}
.post-stats1, .post-stats2 {
position:relative;
margin-left: 95px;
font-size: 12px;
display:inline-block;
}
.post-stats2 {
margin-left: 30px;
}
.post-stats1, .post-stats2 a{
display:inline-block;
height: 15px;
line-height:12px;
vertical-align: middle;
}
.icon {
position:absolute;
display:inline-block;
top:-1px;
left:-20px;
width: 15px;
height: 15px;
background: url("/assets/course14/post-challenge.png") no-repeat;
}
.icon-tags {
background-position:0 0;
}
.icon-comments {
background-position:-20px 1px;
}

выводить 100%

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 {
position: relative;
padding-left: 75px;
}

.post-stats .icon {
width: 15px;
height: 15px;

}
.post .post-title,
.post a {
color: #2980b9;
text-decoration: none;
}
.post .post-text,
.post .post-date,
.post .post-type{
border-bottom:5px solid #bdc3c7;}

.post .post-text,
.post .post-date{background:#ffffff;}

.post .post-date,
.post .post-type {
position: absolute;
box-sizing: border-box;
left: 0;
width: 55px;
height: 60px;
}
.post .post-date{top: 0;
padding:5px;
padding-top:19px;
text-align:center;
font-size:15px;
font-weight:bold;}

.post .post-type{
background:#7f8c8d url(/assets/course14/quotes.png) no-repeat;
bottom:75px;
background-position:50% 50%;
border-bottom:5px solid #bdc3c7;}

.post .post-text{position:relative;
bottom:20px;
padding:10px 10px 10px 15px;
width:170px;}
.post .post-title{font-size:20px;}
.post .post-author {
margin-top:5px;
margin-bottom: 5px;}
.post .post-stats {
position: relative;
display: inline-block;
margin-bottom: 20px;
margin-right: 10px;
padding-left: 20px;
}

.post .icon {
position: absolute;
left: 0;
width: 15px;
height: 15px;
background: url(‘https://htmlacademy.ru/assets/course14/post-challenge.png’) no-repeat;
}
.post .icon-comments{background-position:-20px 0;}
/*
Все размеры, отступы, координаты, размеры шрифтов (не заданные в body) кратны 5 или 10.
Адреса картинок:
/assets/course14/quotes.png
/assets/course14/post-challenge.png
Картинка «кавычки» выровнена по центру
*/

Позиционирование для post-text является лишним. Также обратите внимание, что величины отступов и размеров должны быть кратны пяти.
Дополнительно поработайте над читабельностью своего кода. Не надо все так лепить. Делайте отступы между правилами.

**Помогите понять, почему 99% пока никто не пострадал )) **
P.S. Пожалуйста!!!

При “Наложении” не вижу никаких отличий!!!

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 {
position:relative;
margin-left: 75px;

}

.post-date {
line-height: 55px;
position: absolute;
left: -75px;
top: 0px;
width: 55px;
height: 55px;
border-bottom: 5px solid #bdc3c7;
background: white;
text-align: center;
font-size: 15px;
font-weight: bold;
}

a {
text-decoration: none;
color: #3e8cbf;
}

.post-type {
position: absolute;
left: -75px;
top: 70px;
width: 55px;
height: 55px;
border-bottom: 5px solid #bdc3c7;
background: #7f8c8d url("/assets/course14/quotes.png") no-repeat 50% 50%;
}

.post-title {
font-size: 20px;
color: #3e8cbf;
margin-bottom: 5px;
}

.post-text {
padding: 10px 10px 10px 15px;
width: 170px;
min-height: 95px;
background: white;
border-bottom: 5px solid #bdc3c7;
}

.post-author {
margin-bottom: 5px;
}

.post .post-stats {
position: relative;
display: inline-block;
margin-right: 10px;
padding-left: 20px;
}

.post .icon {
position: absolute;
left: 0;
width: 15px;
height: 15px;
background: url(‘https://htmlacademy.ru/assets/course14/post-challenge.png’) no-repeat;
}

.post .icon-tags {
background-position: 0px 0px;
}

.post .icon-comments {
background-position: -20px 0px;
}

Разобрался! Не тот цвет текста!!!