18/18 нужна помощь. Как поставить цифру 5 на одной линии со словами интенсив, программа

<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">
    <title>Испытание: анонс поста</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="post">
      <div class="post-title">Интенсив: программа</div>
      <div class="post-date">13.09</div>
      <div class="post-type"></div>
      <div class="post-author">
        Автор: <a href="#">HTML Academy</a>
      </div>
      <div class="post-stats">
        <div class="icon icon-tags"></div>
        <a href="#">интенсив</a>,
        <a href="#">программа</a>
      </div>
      <div class="post-stats">
        <div class="icon icon-comments"></div>
        <a href="#">5</a>
      </div>
      <div class="post-text">Работа над интенсивом идёт полным ходом. Мы нашли крутых людей в команду и решили ещё кучу задач. Но сегодня я подробнее расскажу о работе над программой интенсива.</div>
    </div>
  </body>
</html>
html,
body {
  margin: 0;
  padding: 0;
}

body {
  width: 280px;
  min-height: 250px;
  padding-top: 50px;
  padding-right: 10px;
  padding-left: 10px;

  font-size: 12px;
  line-height: 1.2;
  font-family: "Arial", sans-serif;
  color: #7f8c8d;

  background-color: #ecf0f1;
}

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

.post-title {
  font-size: 20px;
  color: #2980b9;
}

.post {
  margin-left: 80px;
  width: 210px;
  position: relative;
}

.post a {
  color: #2980b9;  
  text-decoration: none;
}

.post-text {
  width: 165px;
  background-color: #ffffff;
  padding: 10px 15px;
  border-bottom: 5px solid #bdc3c7;
}

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

.post-type {
  display: inline-block;
  width: 55px;
  height: 55px;
  background: #7f8c8d url("quotes.png") no-repeat 50% 50%;
  vertical-align: middle;
  position: absolute;
  top: 70px;
  left: -80px;
  border-bottom: 5px solid #bdc3c7;
}

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

.post-stats .icon-tags {
  position: absolute;
  display: inline-block;
  background: url("post-challenge.png") no-repeat 0px 0px;  
}

.post-stats .icon-comments {
  position: absolute;
  display: inline-block;
  background: url("post-challenge.png") no-repeat -20px 0px;
  top: 55px;
  right: 50px;
}

Доделал получилось 99%

<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">
    <title>Испытание: анонс поста</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="post">
      <div class="post-title">Интенсив: программа</div>
      <div class="post-date">13.09</div>
      <div class="post-type"></div>
      <div class="post-author">
        Автор: <a href="#">HTML Academy</a>
      </div>
      <div class="post-stats">
        <div class="icon icon-tags"></div>
        <a href="#">интенсив</a>,
        <a href="#">программа</a>
      </div>
      <div class="post-stats">
        <div class="icon icon-comments"></div>
        <a href="#">5</a>
      </div>
      <div class="post-text">Работа над интенсивом идёт полным ходом. Мы нашли крутых людей в команду и решили ещё кучу задач. Но сегодня я подробнее расскажу о работе над программой интенсива.</div>
    </div>
  </body>
</html>
html,
body {
  margin: 0;
  padding: 0;
}

body {
  width: 280px;
  min-height: 250px;
  padding-top: 50px;
  padding-right: 10px;
  padding-left: 10px;

  font-size: 12px;
  line-height: 1.2;
  font-family: "Arial", sans-serif;
  color: #7f8c8d;

  background-color: #ecf0f1;
}

.post-title {
  font-size: 20px;
  color: #2980b9;
}

.post {
  margin-left: 75px;
  width: 210px;
  position: relative;
}

.post a {
  color: #2980b9;  
  text-decoration: none;
}

.post-text {
  width: 165px;
  background-color: #ffffff;
  padding: 10px 15px;
  border-bottom: 5px solid #bdc3c7;
}

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

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

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

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

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

.post-stats .icon-tags {
  position: absolute;
  display: inline-block;
  background: url("post-challenge.png") no-repeat 0px 0px;  
  top: 0px;
  left: 0px;
}

.post-stats .icon-comments {
  position: absolute;
  display: inline-block;
  background: url("post-challenge.png") no-repeat -20px 0px;
  top: 0px;
  right: 20px;
}

ваше решение не оптимальное, много лишних строчек кода.
касательно иконки комментов: в блоке .icon-comments еще на два пикселя сдвиньте правее и будет 100%.

.post-stats .icon-comments {
position: absolute;
display: inline-block;
background: url(“post-challenge.png”) no-repeat -20px 0px;
top: 0px;
right: 20px;
left: 0;
}


Если position: absolute;
display: inline-block; не нужен.

1 лайк