HTML Why does my text start outside the div?
#image-container{ position: relative; display: block; } #image-container img{ width: 100%; height: auto; display: block; } #short-text{ position: absolute; font-size: 2vw; color: black; } <div id=”image-container”> <img src=”./path/to/image.png” alt=”Some image”> <span id=”short-text”> Short text </span> </div> Why does the text appear right under the image instead of over it ? I tried changing position and display […]