Get the comment count to appear as text over the comment bubble image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Text

Description

Get the comment count to appear as text over the comment bubble 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">
#commentlink {<!--   w  w  w.j a v a  2 s  .  c  o m-->
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png') no-repeat 0 0;
   width:129px;
   height:129px;
   display:block;
   text-align:center;
   line-height:117px
}
</style> 
 </head> 
 <body> 
  <ul id="top"> 
   <li> <a href="/comments"> 
     <div id="commentlink">
       Lore 
     </div> </a> </li> 
  </ul>  
 </body>
</html>

Related Tutorials