Start a project
General

How to correctly align different image sizes in Flatsome

· by Daniel

Add this custom CSS to make sure all product images are displayed correctly.

.box-image img {
	height: auto !important;
	max-width: 100%;
	padding: 20px 10px 0 !important;;
	vertical-align: middle;
	margin: auto !important;
	max-height: 100%;
	width: auto !important;
}
.box-image:hover img:first-child {
	display: none !important;
}

More articles

All articles →
GeneralNovember 17, 2026 Labelling AI images: what applies since the AI Act Product shots from an image generator, campaign visuals made with AI, a model who doesn’t exist: AI images are everyday business in online shops and on websites. Since 2 August 202… GeneralNovember 10, 2026 PlentyONE & Claude: AI reply drafts in the Messenger “Where is my order?”, “When will it ship?”, “My voucher doesn’t work”: in an online shop’s customer service, many questions repeat themselves. If you work with PlentyONE (formerly … GeneralOctober 29, 2026 EU AI Act: What the AI Regulation Means for Websites and Online Shops Since 2 August 2026, the transparency obligations of the European AI Regulation, the EU AI Act, apply. If you use an AI chatbot on your website, create images with AI or have texts…

Let's increase your online sales.

Tell us about your shop or website. A developer replies, not a sales team.

★ 4.85/5 from 800+ ratings · Envato Elite Author · Made in Germany