KLantz Posted January 5, 2021 Share Posted January 5, 2021 (edited) Site URL: https://www.twoofakindrentals.com Hello! My announcement bar has text that's right aligned for desktop view, but I want this text to be centered & made slightly smaller for the mobile view. Text should stay as-is for the desktop view and only be adjusted for the mobile view. Can you kindly tell me what the code is to adjust the text on mobile view? Edited January 5, 2021 by KLantz Beyondspace 1 Link to comment
Beyondspace Posted January 5, 2021 Share Posted January 5, 2021 3 hours ago, KLantz said: Site URL: https://www.twoofakindrentals.com Hello! My announcement bar has text that's right aligned for desktop view, but I want this text to be centered & made slightly smaller for the mobile view. Text should stay as-is for the desktop view and only be adjusted for the mobile view. Can you kindly tell me what the code is to adjust the text on mobile view? Check this in Design->Custom CSS @media screen and (max-width: 640px) { .sqs-announcement-bar-text { padding: .8em 1em; } .sqs-announcement-bar p { display: flex; align-items: flex-start; } .sqs-announcement-bar-text p > a{ width: 25%; font-size: 0.7rem; display: inline-block; } } tuanphan 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
KLantz Posted January 6, 2021 Author Share Posted January 6, 2021 Thank you!!! Beyondspace 1 Link to comment
tuanphan Posted January 7, 2021 Share Posted January 7, 2021 @KLantz On mobile, I think you can consider convert clients we work with to 2 logos/row, it will be better. If you want, use this CSS @media screen and (max-width:767px) { div#page-section-5f56951efab9b365a26c9902>.row:nth-child(2)>.span-2 { width: 50% !important; float: left !important; } div#page-section-5f56951efab9b365a26c9902>.row:nth-child(2)>.span-2:nth-child(2n+1) { clear: left; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
IwanJ Posted May 25, 2022 Share Posted May 25, 2022 (edited) Hi there @tuanphanor @bangank36 I can change the font size in my mobile view announcement bar, but how do i reposition the 'x' button? (to centre align it in the announcement bar section and move it a bit to the right) Can you please help? https://deep-learning-cafe.squarespace.com/ password: password123 Edited May 25, 2022 by IwanJ Link to comment
Beyondspace Posted May 25, 2022 Share Posted May 25, 2022 3 hours ago, IwanJ said: Hi there @tuanphanor @bangank36 I can change the font size in my mobile view announcement bar, but how do i reposition the 'x' button? (to centre align it in the announcement bar section and move it a bit to the right) Can you please help? https://deep-learning-cafe.squarespace.com/ password: password123 You can try .sqs-announcement-bar-close { top: 50%; transform: translateY(-50%); } Let me know how it works on your site IwanJ 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
IwanJ Posted May 25, 2022 Share Posted May 25, 2022 It certainly does! Thank you so much @bangank36 😀 Beyondspace 1 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