Jump to content

Side by side code blocks in mobile view

Recommended Posts

  • Replies 3
  • Views 425
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.