I've put an image followed by text in a div and used relative positioning to place the text over the image like so:
<div><img><p></p></div>
p {position: relative; top: -250px;}
The problem is, there's a space below the image where the text was originally supposed to go and I can't figure out how to get rid of it. Playing with padding and margins don't seem to work. I'm making a responsive site using flexbox. If possible, I'd also like to position the text using div padding. Any suggestion is welcome.
Thank you!