<div class="base">
<div class="headline">
<svg>
<clippath id="mask">
<text dominant-baseline="hanging">Awesome Headline</text>
</clippath>
</svg>
</div>
</div>
<style>
body {
background: url('https://images.pexels.com/photos/2179483/pexels-photo-2179483.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1')no-repeat;
background-size:cover;
}
.headline {
font: 50px system-ui, sans-serif;
font-weight: 900;
backdrop-filter:invert(100%);
clip-path: url(#mask);
letter-spacing:30px;
}
.base {
position:absolute;
top:20%;
left:20%;
width:400px;
height:auto;
background-color:red;
transform: translate(-20%, -20%);
}
</style>
(https://i.stack.imgur.com/iQbqc.png)
I want to do like in this picture.
I don't know if it's because of the svg but it overflows from the width I gave the base class.
what I want to do is to make the text go down to a bottom line