Div over image without absolute positioning
<p>I'm stuck with this... My goal is this page: </p>

<p><a href="https://i.stack.imgur.com/xQEZs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xQEZs.jpg" alt="enter image description here"></a></p>

<p>I want to place text over an image, for example "STALDEN". I know how to do this, but when i use absolute positioning and insert a new entry the text is on the same position like to one before. How can I solve this better?</p>

<p>Any help much appreciated! </p>

<p>This is what i have: </p>

<pre><code>&lt;div class="karte"&gt;
      &lt;img src="img/home/stalden.png" alt=""&gt;
      &lt;h1&gt;STALDEN&lt;/h1&gt;
    &lt;/div&gt;
</code></pre>

<p>CSS </p>

<pre><code>.karte img {
  width: 100vw;
}


.karte h1 {
  position: absolute;
  top: 50px;
  left: 50px;
  color: white;
  font-family: "Teko", sans-serif;
  font-size: 15vw;
}
</code></pre>