@ericsalvi
Posted
I'd also check out the images on desktop as they all appear to get squished and not stay in the original ratio. This is for all images on the desktop version of the site.
@Ernest2026
Posted
@ericsalvi what can i to to avoid this please...
@ericsalvi
Posted
@Ernest2026 The easiest rule for keeping images in the correct constrained proportions is to not set a pixel/percentage value for both the height and width of an image. It is best to only set the width and then set the height value as auto
. What this will do is keep the exact proportions of the width and height of the original image and just adjust the width according to what you set, and the height will automatically adjust with it.
For the latest articles, you could set the width of the images to 100% and then leave the height set to auto. Right now you only have a height value you set. If you do this, however, the bottoms will all be different. One best practice for needing the container for the image to be the same sizes for all items in that section is to instead set the image as a background image through CSS (inline) and then set the size of the background image to cover
. You then set the exact width and height of the container to your liking.
For the top floating image, you might be able to work out using auto
for the height as well. It will be more responsive and not look squished on different screen sizes.
@Ernest2026
Posted
@ericsalvi thank you very much sir, I appreciate...