HTML CSS examples for CSS Widget:Image Text
add text underneath the centered image
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #over {<!--from w w w. j a va 2 s. co m--> text-align:center; } </style> </head> <body> <div id="over"> <figure> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> <figcaption> Lorem ipsum dolor </figcaption> </figure> </div> </body> </html>