JSFiddle - React, Tailwind, and code Playground

by ShaCP

HTML

<div class="container">
  <div class="child-container one">
    <div class="child-container two">
      <div class="child-container three">
        <div class="child">
          owfmoefoe meofmeofmeo mfoefmeo mfeofmeofmeo moefmeofmeofm
        </div>
      </div>
    </div>
  </div>
</div>

CSS

.container {
  display: inline-flex;
  flex-direction: column;
  max-width: 100px;
}

.two {
display: grid;
}

.three {
  display: grid;
}

.child {
/* display: grid; */
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


* {
  border: 1px solid;
  box-sizing: border-box;
}