Solved Templates

Change image height in image/content block

Asked by Dina Abramson 3 years ago Last activity 3 years ago

hi,

I am unable to modify the height size of my picture and keep it vertically centered. I would like to reduce the vertical height so there is not so much top and bottom space on the text side.

I was using this css and playing around with the percentages, but the text did not stay centered vertically in the block:

.sppb-addon-image-content .sppb-image-holder {
position: absolute;
top: 0;
width: 50%;
height:35%;
background-position: 100%;
background-size: cover;
}
https://awdtest3.com/images/image_height_issue.png

Thanks in advance for your assistance

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff
3 years ago · edited

Hi Dina,

For that addon the only way to reduce picture size is reduce top & bottom padding for content on the left side.

info_824_2023.jpg

I think much better idea is using a different addon in that area. For example Image Layouts OR just create two columns with Text on the left side and Image addon on the right side.

Log in to reply.