All things Shopify and commerce
I tried to align image and content in same line of multicolumn section of dawn theme using below custom code but other column image is shrinked please help.
.multicolumn-card.content-container {
display: flex;
align-items: center;
}
Hi @TheLivingCo ,
Add the Following CSS code:
.multicolumn-card.content-container {
display: flex;
align-items: center; /* Aligns items vertically */
}
.multicolumn-card.content-container img {
max-width: 100%; /* Ensures images do not exceed their container's width */
height: auto; /* Keeps the image aspect ratio */
flex: 0 0 auto; /* Prevents the image from shrinking */
margin-right: 20px; /* Optional: Add space between image and content */
}
.multicolumn-card.content-container > div {
flex: 1; /* Allows content to take up remaining space */
}
After saving the changes, check your store to see if the images and content align properly. Let me know if you need any further adjustments!
After adding above code to custom css image size changes to big size i want image size to be same for both column
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024