Jump to content

Centering text, logos and social sharing on mobile footer

Recommended Posts

I have used code to center the footer text on my website, but I can't work out how to center the LinkinIn Icon. 

This is the code I used for the text. I tried using the Block ID to center the LinkedIn logo but couldn't get it to work.

Please could someone help? 

// CENTER FOOTER TEXT FOR MOBILE
@media screen and (max-width:767px) {
footer.sections * {
    text-align: center !important;
  }}

https://claudia-pascale-2.squarespace.com

pw: claudia 

Link to comment

@tucecoop Hi! To center the LinkedIn logo, you can add this code under Website > Pages > Website Tools > Custom CSS

@media screen and (max-width:767px) {
	footer nav.sqs-svg-icon--list {
		justify-content: center !important;
	}
	footer .social-icons-size-medium.social-icons-style-regular.social-icon-alignment-left .sqs-svg-icon--wrapper {
		margin-left: 7px !important;
		margin-right: 7px !important;
	}
}

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.