Hover Box changes the height of images and wrecks the layout
-
How can I stop a Hover Box element from changing the height of the ‘front’ image that ordinarily displays when the mouse isn’t hovering?
When I replace an Single Image element with a Hover Box element containing the same image, the result is never the same height. If there’s nothing in the Hover Block, the image gets cropped top and bottom by about 20%, so it’s short. If I add some text to the Hover Block, it zooms in and crops from the sides to keep the same width, but the resulting image height grows with each additional line of text.
I found advice online that led me to add the following to the CSS for the page:
.vc-hoverbox {
max-height: 271px!important;
min-height: 270px!important;
}This worked to keep images unaltered, but the page layout still gets messed up because the Hover Box still “occupies” the same amount of screenspace as it would have if the the height hadn’t been constrained by the CSS. So whatever is below the now-properly-sized image gets pushed down the page anyway.
Any insights would be very helpful.
The page I need help with: [log in to see the link]
- The topic ‘Hover Box changes the height of images and wrecks the layout’ is closed to new replies.