Greetings and thank you for taking the time to read my message. I am relatively new to this, so please bear with me if things seem a bit disorganized.
I have constructed a table and am attempting to implement a hover effect to zoom in on a specific cell without disturbing the position of the surrounding cells. Ideally, I would like the zoomed-in view to be centered rather than expanding from the upper left corner. Below is an excerpt from the CSS styling used for this purpose. Currently, when I hover over a cell, it not only enlarges but also shifts everything to the right. My goal is for the zooming action to preserve the layout of other cells on the table. If additional information is needed, please do let me know. It's worth mentioning that all this coding pertains to an HTA (HTML Application) and certain functionalities might be limited within this environment. Thank you!
CSS
.button1 {
color: red;
width:245px;
height:25px;
font-family: Tahoma;
font-size: 12px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
}
.button1:hover {
color: red;
width:245px;
height:25px;
font-family: Tahoma;
font-size: 14px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
zoom:150%;
}
.button2 {
width:245px;
height:25px;
font-family: Tahoma;
font-size: 12px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
}
.button2:hover {
display: table-cell;
width:245px;
height:25px !important;
font-family: Tahoma;
font-size: 14px;
text-align:center;
text-decoration: none;
background-color: #E2E2E2;
border-top: 2px solid #F1F1F1;
border-right: 2px solid #969696;
border-bottom: 2px solid #969696;
border-left: 2px solid #F1F1F1;
zoom:150%;
}
HTML
<table class="table">
<tr width="25%" >
<td width="25%" valign="top">
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
<a class="button1" href="#"onclick="Application"><span>Application</span></a>
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
...
<a class="button2" href="#"onclick="Application"><span>Application</span></a>
</td>
</tr>
</table>