set a transparent border to your normal state elements.
When applying :hover size of the frame changes the size that the element occupies.
eg:
.myelement { border:4px solid transparent; } .myelement:hover { border: 4px solid green; }
http://jsfiddle.net/mPmRA/
EDIT: - more specifically to your table (ugh: tables ... collapse border makes the above not working properly)
http://jsfiddle.net/mPmRA/1/
set the transpersonal boundary to tr
tr { border-top:4px solid transparent; border-bottom:4px solid transparent; }
And to freeze, do something like:
tr:hover td { border-top:4px solid green; border-bottom:4px solid green; }
Borders td will be displayed ABOVE line boundaries.
source share