i want this star image in center, its multi coloumn section.
pass = Hurra
A user seeks to center a star image within a multi-column section on their Shopify store. Multiple developers provided CSS solutions with similar approaches:
Primary Solutions:
.multi-column__item with display: flex, flex-direction: column, and align-items: center.multi-column__item img with margin: 0 autoImplementation Methods:
theme.liquid or base.css/theme.css files in the code editorKey Steps:
All responders confirmed their solutions should resolve the centering issue. The discussion remains open with no indication the user selected a specific solution.
i want this star image in center, its multi coloumn section.
pass = Hurra
Hello @rgeafrauuhf
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hello @rgeafrauuhf , Please follow these steps to add this CSS code:
.multi-column__item img {
margin: 0 auto;
}
See the screenshot below.
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hello @rgeafrauuhf
You just need to follow below steps:
Go to Online Store → Theme → Edit code.
Open your theme.css file
Paste the below code at the end of the file.
.section-stack .multi-column__item img {
margin: 0 auto;
}
Hope this solution works best for your issue.
Hi @rgeafrauuhf ,
You can edit this by adding a simple line of css
Go to your online store > themes > click on customise on current active theme > click on the section which needs to be changed > on rightside scroll down you can see custom css section > paste the below code.
.multi-column__item {
display: flex;
flex-direction: column;
align-items: center;
}
by adding like this it only effect on that particular section only if you need to make change in every page where the section comes then
go to online Store > themes> click on three dots of current active theme> edit code > search for theme.css in leftside bar search > open it paste the above code.
I hope this helps! If it does, please like it and mark it as a solution!
If you need further assistance, feel free to reach out!
Regards,
Sweans
Hello There,
.multi-column__item img {
margin: 0 auto;
}