Hello!
When I look at my blogs page, each image has a different height a width. Is there any way to force all blog images to have the same width and height so that there is consistency in the page?
Website: Mokai
A user’s blog page displays images with inconsistent dimensions, creating a visually uneven layout.
Solutions Provided:
Two experts offered identical CSS fixes:
.features--image-zoom .image-zoom img or .article-item imgobject-fit: coverOutcome:
The original poster confirmed the solution worked perfectly. However, another user later reported the same issue and mentioned the CSS code didn’t produce visible results for them, indicating potential theme-specific variations or implementation challenges.
Hello!
When I look at my blogs page, each image has a different height a width. Is there any way to force all blog images to have the same width and height so that there is consistency in the page?
Website: Mokai
Hi @apalacio ,
I am Ani From https://www.task4store.com/ - Shopify Small & Custom Tasks Experts ( By MS Web Designer - Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore )
Here are the Solutions!
Go to Online Store->Theme->Edit code
Asset->/theme.css ->paste the below code at the bottom of the file.
.features--image-zoom .image-zoom img {
height: 250px;
}
If you have any concerns feel free to ask me!
Regards,
Ani
Hi @apalacio ,
You can follow the instruction below:
.features--image-zoom .article-item img {
width: 100%;
height: 280px;
object-fit: cover;
}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Worked perfectly! Thanks for being so helpful ![]()
Hi, I am facing the same problem. I just posted the code you mentioned but I don’t see any chances. Could you please help me