I can’t seem to figure out how to center my footer in desktop view. I’ve tried adding all types of code using CSS but the footer will not center.
password 198082jc
A user is attempting to center the footer columns in desktop view for the Shopify Impulse theme while keeping the text within each column left-aligned.
Initial Problem:
Solutions Offered:
First approach (Small_Task_Help):
justify-content: center.site-footer__content with media query for screens 768px+Working solution (Shadab_dev):
@media screen and (min-width: 768px) {
.site-footer .grid {
width: 80%;
margin: 0 auto;
}
}
Status: Solution provided with visual confirmation showing centered footer layout.
I can’t seem to figure out how to center my footer in desktop view. I’ve tried adding all types of code using CSS but the footer will not center.
password 198082jc
Do you need something like this?
Yes I want the columns centered but not the text.
Hi,
Hope this will help
/* Center footer columns but keep text left-aligned */
@media screen and (min-width: 768px) {
.site-footer__content {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 40px; /* space between columns */
}
.site-footer__item,
.footer__block {
flex: 0 0 auto; /* Don't stretch full width */
text-align: left; /* Keep text inside each block aligned left */
}
}
The didn’t move anything until I removed “__content” from .site-footer__content. Now it’s almost center but squished.
try this at the very bottom on theme.css or grid.css file
@media screen and (min-width: 768px) {
.site-footer .grid {
width: 80%;
margin: 0 auto;
}
}
This is the final result:
You can play around with the width property defined in percentage. More of a quick solution and i hope this helps.