<div class="kapsayici">
  <div>Fatih Hayrioğlu'nun not defteri <span>min-content</span></div>
  <div>Fatih Hayrioğlu'nun not defteri <span>max-content</span></div>
  <div>Fatih Hayrioğlu'nun not defteri<span>1fr</span></div>
</div>
.kapsayici {
  display: grid;
  grid-template-columns: minmax(min-content, min-content) minmax(max-content, max-content) 1fr;
  grid-gap: 10px;
  width: 100%;
}

div > div {
  border: 2px solid #006c8e;
  background: #009cc1;
  padding: 5px;
  font-family: arial;
  color: white;
  font-size: 18px;
  position: relative;
}

div > div span {
  position: absolute;
  color: red;
  top: -24px;
  left: 0;
  width: 200px;
}

body {
  margin: 80px 20px 0 20px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.