hi,
im trying to align all three columns in footer so that they look like this
they currently look like this
i would like them to have even spacing between them and for them to be centred.
hi,
im trying to align all three columns in footer so that they look like this
they currently look like this
i would like them to have even spacing between them and for them to be centred.
Hi @Luminaskn
To center align all the columns in the footer and have even spacing between them, you can use css flexbox.
Here are how to do that :
.footer__content-top {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
This will enable flexbox, distribute the available space evenly between the columns using justify-content: space-between, and allow the columns to wrap on smaller screens with flex-wrap: wrap.
flex: 1 1 auto. Add horizontal margins for spacing and center-align the content:.footer-block {
flex: 1 1 auto;
margin: 0 15px;
text-align: center;
}
@media screen and (max-width: 768px) {
.footer-block {
flex: 1 1 100%;
margin: 15px 0;
}
}
This will make each column take the full width and add vertical spacing between them on screens under 768px wide.
Remember to adjust the class names, margins, and breakpoints as needed to match your theme’s structure. Test the layout on both desktop and mobile to ensure it is responsive and well-spaced on all screen sizes.
If the provided CSS doesn’t work as expected, inspect your theme’s footer HTML structure and CSS to identify the correct selectors to target.
You may need to override existing styles or use more specific selectors to achieve the desired layout.
I am still not able to get it right.
can you look at my store and see what i did wrong?
URL: luminaskn.co.uk
password: Lumina2506
HI @Luminaskn
You can try this code to achieve your result
.footer-block__details-content {
margin-bottom: 4rem;
text-align: left;
}
footer-block__brand-info {
text-align: left;
}
.footer-block--newsletter {
position: absolute;
left: 15px;
top: 141px;
width: 420px;
}
.footer__blocks-wrapper{
display: flex !important;
flex-direction: row-reverse !important;
}
}
Result
I’ve checked your site and it looks good in the footer, all you need to do now is center the h2 titles, and maybe harmonize the font size to have the same in all columns ![]()