Erlend-fs Posted May 5, 2021 Share Posted May 5, 2021 Site URL: https://spinach-keyboard-w7ws.squarespace.com/fallsikringskurs Hello! I've made a two column layout with one button at the bottom of each column. I would like to align the two buttons on the same horizontal level in desktop mode. I know this can be achieved by adding a line break, before adding the two buttons. But this makes the layout display wrong on mobile, since the two columns breaks into one column (below each other) on mobile, and the buttons will then be placed at the bottom of both text boxes. Any idea anyone? Link to comment
Beyondspace Posted May 6, 2021 Share Posted May 6, 2021 10 hours ago, Erlend-fs said: Site URL: https://spinach-keyboard-w7ws.squarespace.com/fallsikringskurs Hello! I've made a two column layout with one button at the bottom of each column. I would like to align the two buttons on the same horizontal level in desktop mode. I know this can be achieved by adding a line break, before adding the two buttons. But this makes the layout display wrong on mobile, since the two columns breaks into one column (below each other) on mobile, and the buttons will then be placed at the bottom of both text boxes. Any idea anyone? Flexbox may help @media only screen and (max-width: 768px) { section[data-section-id="6052fff2787304435eeb60b2"] .content > .sqs-layout .row:nth-child(2) { display: flex; flex-direction: row; justify-content: center; align-items: stretch; align-content: center; } section[data-section-id="6052fff2787304435eeb60b2"] #page-section-6052fff2787304435eeb60b2 .row:nth-child(2) .sqs-col-6 { position: relative;flex-grow: 1; flex-shrink: 1; flex-basis: auto;width: 50%; } section[data-section-id="6052fff2787304435eeb60b2"] #page-section-6052fff2787304435eeb60b2 .row:nth-child(2) .sqs-col-6 .sqs-block-form { position: absolute; width: ~"calc(100% - 34px)"; bottom: -50px; } } BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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
Erlend-fs Posted May 6, 2021 Author Share Posted May 6, 2021 Works great! I chose to use "min-width: 767px", since I am happy with how the page displays on mobile. @media only screen and (min-width: 767px) { section[data-section-id="6052fff2787304435eeb60b2"] .content > .sqs-layout .row:nth-child(2) { display: flex; flex-direction: row; justify-content: center; align-items: stretch; align-content: center; } section[data-section-id="6052fff2787304435eeb60b2"] #page-section-6052fff2787304435eeb60b2 .row:nth-child(2) .sqs-col-6 { position: relative;flex-grow: 1; flex-shrink: 1; flex-basis: auto;width: 50%; } section[data-section-id="6052fff2787304435eeb60b2"] #page-section-6052fff2787304435eeb60b2 .row:nth-child(2) .sqs-col-6 .sqs-block-form { position: absolute; width: ~"calc(100% - 34px)"; bottom: -50px; } } Thanks a lot bangank36 Beyondspace 1 Link to comment
tuanphan Posted May 9, 2021 Share Posted May 9, 2021 @Erlend-fs Do you want to fix these? Site URL – https://spinach-keyboard-w7ws.squarespace.com/ 1. (Mobile-Homepage) Change to 2 logos/row? 2. (Mobile-Homepage) Reduce this space? 3. (Tablet-Munchmuseet) White bar on right of screen 4. (Redningskurs) You haven’t changed SEO Title, so the browser tab name still shows “Services 1” 5. (Utstyrssalg) Similar on this page 6. (Periodisk-kontroll) and some other pages 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