Jump to content

mddiatta

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by mddiatta

  1. Dear @tuanphan

    I'm back to have a little of your help again if you're available. 

    I'm working on the same site as in this thread: http://www.myriamdiatta.com/projects

    In the grid of images and text on this page, I moved "thinking form" (top left) to the position it is now, and on mobile things have gotten skewed. On mobile I want the content to be a column of two. I did my best to read through the css you originally made for me, but i couldn't seem to work out what was this issue. 

    Right now it looks like this: 

    IMG_1741.thumb.PNG.e4f392accc16913601cf4682f891836a.PNGIMG_1743.thumb.PNG.a1b5c49fcbf25d1608b229fcbb1f15b8.PNG

    IMG_1742.thumb.PNG.b79fbdd4ba3948d8746a6ecfdd62d070.PNG

     

    Here is the current code you made for me: 

    /*TWO COLUMNS ON MOBILE VIEW PROJECTS PAGE*/////////

    @media screen and (max-width:640px) {
    div#block-yui_3_17_2_1_1606665871851_4586+.row>.span-2, div#block-yui_3_17_2_1_1606665871851_4586~.row>.span-2 {
        width: 50% !important;
        float: left !important;
    }
    div#block-yui_3_17_2_1_1606665871851_4586+.row>.span-2:nth-child(2n+1), div#block-yui_3_17_2_1_1606665871851_4586~.row>.span-2:nth-child(2n+1) {
        clear: left;
    }
    }
    /* mobile 2 columns */
    /* mobile 2 columns */
    @media screen and (max-width:767px) {
    div#page-5fc3c4c85147b14804a5f567 .span-8 .span-4 .span-2 {
        width: 50% !important;
        float: left !important;
    }
      div#page-5fc3c4c85147b14804a5f567 .span-8 .span-4 .span-2:nth-child(2n+1) {
    clear: left !important;
    }  
    }
     

  2. On 12/21/2020 at 8:14 PM, tuanphan said:

    Add to Home > Design > Custom CSS

    
    @media screen and (max-width:640px) {
    div#block-yui_3_17_2_1_1606665871851_4586+.row>.span-2, div#block-yui_3_17_2_1_1606665871851_4586~.row>.span-2 {
        width: 50% !important;
        float: left !important;
    }
    div#block-yui_3_17_2_1_1606665871851_4586+.row>.span-2:nth-child(2n+1), div#block-yui_3_17_2_1_1606665871851_4586~.row>.span-2:nth-child(2n+1) {
        clear: left;
    }
    }

     

    @tuanphan thank you so much, you're a star. Unfortunately it's not working. I tried changing the blocks in the code but no luck.

     

    best, myriam

  3. I have a similar question: How can I put blocks side by side on mobile only?

    The one page on my site I would like to do this is on my "Projects" page. And would like this effect on mobile and ipad (i.e. two columns on mobile. I attached screenshot of what I'd like it to look like and included blocks so you can see its many blocks together.) Now on mobile it appears as one gigantic image and the text stacked. And I do not want to use the gallery blocks to achieve this because of their style. I'm happy with the site on desktop. 

    I have about 30 blocks to organize on this "Projects" page but I am familiar enough with a bit of css / html that if someone can help me get started with just the code for 4 blocks (2 images, 2 text), I'm sure I can manage the rest. 

    Better yet, I'd like to disable mobile view altogether (using Wells on 7.0).
    Is it really not possible?  😭

    Thanks very much for your help. 

     

     

     

    Screen Shot 2020-12-18 at 8.16.16 AM.png

×
×
  • 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.