how to put text <figcaption> on <figure> ?

 <section> <figure> <figcaption id="design">We love design.<wbr>We provide the best design advice for you.</figcaption> <img src="img/index.png"> </figure> </section> 

    1 answer 1

    figure make position:relative figcaption make position:absolute

     .fig { position:relative } .figCapt { position:absolute; left: 0; top: 0; // получим текст слева сверху } 
    • Thank you very much Vasily Barbashev - Ashot