add text underneath the centered image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

add text underneath the centered image

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials