TaylorJohnson09 Posted July 27, 2021 Share Posted July 27, 2021 Hi Community, I am trying to have side by side code blocks. How do I achieve this? https://giraffe-stingray-tlr7.squarespace.com (password: cnsvalve) Link to comment
IgnitePerth Posted July 28, 2021 Share Posted July 28, 2021 You appear to resolved this? If you find our solution helpful please thumbs up or mark it as the solution! Thank you 🙂 Contact Us for detailed help Common Squarespace Tips Sharing Your Site Link Squarespace web designers in Perth WA. Link to comment
TaylorJohnson09 Posted July 28, 2021 Author Share Posted July 28, 2021 Yes I got help through sending a message to tuanphan. Thank you! Here is the answer if needed: /* Mobile code blocks side by side */ @media screen and (max-width:767px) { div#block-641d2b17a77fc9009ed6+.row .span-6 { width: 50% !important; float: left !important; } } I still need help because I am wanting to remove the center gap between the two boxes. I had to reduce the text font to make it all fit and look right. But if I make the margin between the two smaller, I can increase the font size even a little. Link to comment
tuanphan Posted July 29, 2021 Share Posted July 29, 2021 Use this code @media screen and (max-width: 767px) { div#block-641d2b17a77fc9009ed6+.row { .span-6 { width:50% !important; float: Left !important } .span-6:first-child .code-block { padding-right: 0px !important; } .span-6:last--child .code-block { padding-left: 0px !important; } } } 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.