Archived topic
Centre Single Footer
3 replies · Started by Catherine on January 14, 2021
I want to use one footer widget and make it wide so that it mostly fills the container.
I have the footer width set to full and the inner footer width contained.
I would also like the text inside the widget to be centred.
I have tried a few variations of GP CSS suggestions I founbd using google search. They nearly worked in that they shifted the widget itself nearer the middle but the text wasn't centred despite the CSS being written for that.
.inside-footer-widgets {
display: flex;
justify-content: center;
}
.inside-footer-widgets > div {
flex-basis: 620px;
}
If I change the 620px to 500px it narrows the widget size but on my installation, the contents within the footer aren't centred.
Any ideas?
Hi there,
try this CSS:
.inside-footer-widgets {
display: flex;
justify-content: center;
}
.footer-widgets .inside-footer-widgets > div {
flex-basis: 600px;
text-align: center;
}
That's looking perfect - many thanks!
You're welcome