Howdy, @leslie!
Thanks for writing in! The images used in the Recent Posts element are set as background images on a <div>
with a particular aspect ratio set, which helps to ensure that the height of the elements remains consistent when in a horizontal line. This background image is set to background-size: cover;
to ensure that the image is always filling up the entire space of the <div>
proportionally and there are no unsightly background colors showing through. While there is no way to alter how browsers render this cover
effect (as it has to do with the dimensions of the image itself and the aspect ratio of the container), you can update the position of the background image within its container. For example, you could try:
.x-recent-posts .x-recent-posts-img {
background-position: 50% 0%;
}
This will set your image to be centered horizontally with the 50%
value for the x-axis and aligned at the top of the <div>
with the 0%
value for the y-axis.
That being said, the reason your second image is appearing “cropped” no matter what you do is because the source image itself is physically cropped at the top and bottom:
If you unintentionally edited this before uploading, you will need to upload a new one to ensure you have the proper version in place.
Hopefully this helps to point you in the right direction. Cheers!