HTML CSS examples for CSS Widget:Table Cell
CSS table cell with image in the middle and text at the of the cell bottom
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> table {<!--from w w w . j av a 2 s . co m--> width:100%; } td { text-align:center; } td img { display:block; margin:0 auto; } </style> </head> <body> <table> <tbody> <tr> <td> <a>Lore</a> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> <p>Lorem ipsum dolor sit amet</p> </td> <td> <a>Lore</a> <img src="https://www.java2s.com/style/demo/Firefox.png"> <p>Lorem ipsum dolor sit amet</p> </td> <td> <a>Lore</a> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> <p>Lorem ipsum dolor sit amet</p> </td> </tr> <tr> <td> <a>Lore</a> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> <p>Lorem ipsum dolor sit amet</p> </td> <td> <a>Lore</a> <img src="https://www.java2s.com/style/demo/Opera.png"> <p>Lorem ipsum dolor sit amet</p> </td> <td> <a>Lore</a> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> <p>Lorem ipsum dolor sit amet</p> </td> </tr> </tbody> </table> </body> </html>