When I hover over the image and it grows to 350px, it causes everything around it to shift.
The code is functioning as expected, but the issue arises when the enlarged image pushes nearby elements downward.
Is there a way to prevent this behavior?
#displaycar img
{
height: 200px;
}
#displaycar img:hover
{
height: 350px;
}
By the way, I am utilizing Twitter Bootstrap and have attempted using position: absolute;
.
Is there a solution that allows for expanding the image on hover without affecting surrounding content?