多行文本前后括号的替代方案(响应式)

Alternative for brackets before and after multiline Text (Responsive)

我想在我的文本前后有一个带括号的标题。

为了向您展示我的意思,我创建了这个 fiddle:https://jsfiddle.net/p2cqyut1/ 或者就在这里:

.container {
  position: relative;
}

.brackets {
    width: 450px;
    height: 200px;
    position: absolute;
    border: 3px solid red;
    transform: translate(0%, 20%);
    z-index: 1;
}

.text {
    font-size: 6rem;
    font-weight: 900;
    line-height: 6rem;
    margin-left: 30px;
}
.text span {
    background: #fff;
    position: relative;
    z-index: 2;
}
<div class="container">
  <div class="brackets"></div>
  <div class="text">
    <span>MORE</span><br>
    <span>ABOUT</span><br>
    <span>FUTURE</span>
  </div>
</div>

有没有人对此有更好的其他/响应式解决方案?

我为你破解了一些东西(基于你的 jsfiddle)。

主要区别在于,我调整了容器,并全面使用了相对值。希望这对你有帮助 ;)

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 80%;
  border: 3px solid red;
  padding: 0 5%;
  margin: 5%;
}
span {
  font-size: 14vw;
  font-weight: 900;
  line-height: 1em;
  width: min-content;
  background-color: white;
  padding: 0 16px;
}
span:first-child {
  margin-top: -.25em;
}
span:last-child {
  margin-bottom: -.25em;
}
<div class="container">
  <span>MORE</span><br>
  <span>ABOUT</span><br>
  <span>FUTURE</span>
</div>