Jump to content

Align footer elements differently on mobile vs desktop

Go to solution Solved by Lesum,

Recommended Posts

Hi,

I was hoping to have different alignments for these 4 elements when the website changes from desktop to mobile
1. copyright (align right on desktop, align left on mobile)
2. social buttons (align left on desktop, align center on mobile)
3. request quote button (align left on desktop, align center on mobile)
4. greyed out logo (align left on desktop, align center on mobile)
footer_desktop.thumb.jpg.53699d0cb7928cd5e8f881708081d136.jpg

desired outcome for footer with its own alignments
footer2_after-align.thumb.jpg.ccafeb3668c94c49dd89fd87597720f9.jpg
If i make the align changes in editor for desktop it applies it to mobile also. so i was wondering if there was code to change alignments to these elements when its mobile vs desktop.

website:
https://ellipse-teal-dl5w.squarespace.com/motion
pass: 
blubblub

thanks


footer at the moment because of desktop alignments

footer1_beforealign.jpg

Edited by MAC1
Link to comment
  • Solution

@MAC1 Here's the solution to change alignments on mobile:

@media only screen and (max-width: 767px) {
	#block-2b059365d46e862197d3 p {
		text-align: left !important;
	}
	#block-yui_3_17_2_1_1691505298482_47848 .social-icon-alignment-left .sqs-svg-icon--list {
		text-align: center !important;
	}
	#block-yui_3_17_2_1_1691745460420_10692 .sqs-block-button-container {
		justify-content: center !important;
	}
}

 

Edited by Lesum

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.