/* ============================================================
   CSS 08.03 — display: inline-block — the best of both
   ============================================================
   inline-block = sits in the line like inline,
                  BUT width, height, padding and margin all work like block.
   ============================================================ */

.try-size {
  width: 200px;
  height: 60px;
  margin: 20px;
}

/* Same span as example 02, one extra line: display: inline-block.
   Now width, height and all margins work — and it still sits in the line. */
.inline-block {
  display: inline-block;
  vertical-align: middle;           /* line it up with the middle of the text */
  text-align: center;
  line-height: 60px;                /* puts the words in the middle of the 60px height */
}
/* Try it: delete  display: inline-block;  → it is inline again
   and ignores its size (like example 02). */

.tag {
  display: inline-block;            /* in a row, but padding + margin work fully */
  padding: 6px 14px;
  margin: 4px 2px;
  border-radius: 999px;             /* pill (lesson 07) */
  background-color: #EAF7EF;
  color: #1F9D55;
  font-weight: 600;
  font-size: 14px;
}
/* Try it: change .tag display to  block  → each tag takes a full row.
   Change it to  inline  → the top/bottom margin stops working. */


/* ------------------------------------------------------------
   Only to make the box visible — not part of this lesson
   ------------------------------------------------------------ */
.try-size {
  background-color: #FFF6E0;
  border: 1px solid #FFAF04;
}
