MAC1 Posted August 14, 2023 Share Posted August 14, 2023 (edited) 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) desired outcome for footer with its own alignments 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 Edited August 14, 2023 by MAC1 Link to comment
Solution Lesum Posted August 14, 2023 Solution Share Posted August 14, 2023 (edited) @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 August 14, 2023 by Lesum MAC1 1 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
MAC1 Posted August 14, 2023 Author Share Posted August 14, 2023 thank you all looks great, although the button alignment "request a quote" (no.3 on pics) hasn't been targeted in the css code. what is the block id for the button? cheers Lesum 1 Link to comment
Lesum Posted August 14, 2023 Share Posted August 14, 2023 (edited) Hey, try again. I updated the code. block id for the button: #block-yui_3_17_2_1_1691745460420_10692 Edited August 14, 2023 by Lesum MAC1 1 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment