HTML CSS examples for CSS Widget:Hover Border
Create Border inside a cell on mouse hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> table {<!--from ww w . ja v a 2s. c om--> width: 250px; height: 250px; table-layout: fixed; border: solid black 1px; } table td, table tr { text-align: right; vertical-align:middle; } td { border: solid 4px rgba(0,0,0,0); } td:hover{ background-color: #E5F3FB; border: inset 4px #70C0E7; } td a { display:block;width:100%;height:100%;margin:0 } </style> </head> <body> <table> <tbody> <tr> <td> <a>po</a> </td> <td> <a>?t</a> </td> </tr> </tbody> </table> </body> </html>