HTML CSS examples for CSS Widget:Image Caption
add a caption like text under image in css
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .images {<!--from www . j ava 2 s .c om--> position:relative; display:inline-block; } .images p { position:absolute; width:100%; text-align:center; bottom:0; left:0; } </style> </head> <body> <div class="images"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> <p>Lorem ipsum dolor s</p> </div> </body> </html>