irishmusicschool Posted July 5, 2021 Share Posted July 5, 2021 Site URL: https://churchtownschoolofmusic.ie/Hi folks, I'm trying put 2 buttons in a row on mobile. Failing miserably, Is my "page id" the same thing as my "collection id"? /* Buttons side by side */ @media screen and (max-width:767px) { div#page-5e7b7a293054960426046b4f .span-12 .span-3 { width: 50% !important; float: left !important; } div#page-5e7b7a293054960426046b4f .span-12 .span-3:nth-child(2n+1) { clear: left !important; } } Any thoughts?, sorry for the bother. Link to comment
ArminB Posted July 5, 2021 Share Posted July 5, 2021 (edited) 57 minutes ago, irishmusicschool said: 2 buttons in a row on The usual Squarespace procedure for buttons is one-per-row. so i'd consider having regular text (2 words - each one linked an representing a button) and using CSS to turn it into a button PS: regarding your question: usually it's best to target the block ID or CSS class (like e.g. one example for each: #block-yui_3_17_2_1_1607458165875_6808 {max-width: 60px; display: block; margin-left: auto; margin-right: auto; width: 50%;} .light-bold .sqs-block-button-element {background-color: red !important } Edited July 5, 2021 by ArminB update About Armin:Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084Website: www.braunsberger-media.comLeaders Lodge: See my Profile Link to comment
irishmusicschool Posted July 5, 2021 Author Share Posted July 5, 2021 5 hours ago, ArminB said: The usual Squarespace procedure for buttons is one-per-row. so i'd consider having regular text (2 words - each one linked an representing a button) and using CSS to turn it into a button PS: regarding your question: usually it's best to target the block ID or CSS class (like e.g. one example for each: #block-yui_3_17_2_1_1607458165875_6808 {max-width: 60px; display: block; margin-left: auto; margin-right: auto; width: 50%;} .light-bold .sqs-block-button-element {background-color: red !important } Much appreciated, I'll redouble my efforts. I had tried targeting the block ID at first but perhaps the code used was otherwise flawed. I'll get there! Link to comment
ArminB Posted July 6, 2021 Share Posted July 6, 2021 You can also check out the Squarespace Marketplace and hire somebody for that task:https://www.squarespace.com/designer/home About Armin:Squarespace Expert Profile: https://www.squarespace.com/designer/profile/3649084Website: www.braunsberger-media.comLeaders Lodge: See my Profile Link to comment
tuanphan Posted July 14, 2021 Share Posted July 14, 2021 On 7/5/2021 at 6:39 PM, irishmusicschool said: Site URL: https://churchtownschoolofmusic.ie/ Hi folks, I'm trying put 2 buttons in a row on mobile. Failing miserably, Is my "page id" the same thing as my "collection id"? /* Buttons side by side */ @media screen and (max-width:767px) { div#page-5e7b7a293054960426046b4f .span-12 .span-3 { width: 50% !important; float: left !important; } div#page-5e7b7a293054960426046b4f .span-12 .span-3:nth-child(2n+1) { clear: left !important; } } Any thoughts?, sorry for the bother. I see some problems on your site. Do you need help on these? Site URL – https://churchtownschoolofmusic.ie/ 1. (Desktop – Header) Menu items are cut into 2 lines. https://churchtownschoolofmusic.ie/ 2. (Desktop – Homepage) The amount of text in the block is different, so the block size is not equal. https://churchtownschoolofmusic.ie/ 3. (Mobile – Blog posts) Paginations are a bit close together. https://churchtownschoolofmusic.ie/blog/7cbxf86lfofgabl4a9uoieqxy98jc4 4. (Mobile – Calendar) On the desktop you can see the whole picture. On mobile, the image is partially cropped. https://churchtownschoolofmusic.ie/caln 5. (Tablet – Homepage) The width of the text is a bit small. https://churchtownschoolofmusic.ie/ 6. (Tablet – Footer) On desktop, these links are on one line. On tablet is cut into 2 lines. https://churchtownschoolofmusic.ie/ 7. (Tablet – Lessons) Button overlaps the button. https://churchtownschoolofmusic.ie/Lessons 8. (Tablet – Calendar) Increase calendar width? https://churchtownschoolofmusic.ie/caln 9. (Tablet – Pricing) The width of the block is a bit small https://churchtownschoolofmusic.ie/pricing 10. Still have some other issues. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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