Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1347233
    Lance B
    Participant

    When adjusting the size of the screen from larger to smaller, the grid will be fine, showing two rows of three, then breaking showing one row of three, then two on one row, then one on a third row, then when the screen is a little smaller it puts them back together into two rows of three. What’s up with that? See the two screenshots attached.

    #1347277
    Prasant Rai
    Moderator

    Hello Lance,

    Thanks for writing in!

    Could you please provide us with your website URL so we can take a closer look?

    Thanks.

    #1352512
    Lance B
    Participant

    advancedbiology.com

    #1353169
    Friech
    Moderator

    Hi There,

    Thank you for the URL but did you remove the “tattoo” column? We can not replicate the issue, the grid looks like this on smallest screen.

    http://prnt.sc/e2yvaw

    #1353226
    Lance B
    Participant

    I’m sorry – try it on this page:

    https://www.advancedbiology.com/powerful-workout/

    #1353378
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> Global CSS :

    @media (max-width: 979px){
    .x-block-grid.three-up>li:nth-child(3n+1) {
        clear: both;
    }
    }

    Hope that helps.

    #1361934
    Lance B
    Participant

    Thank you, but now it’s doing this. I have tried everything after adding the code above. I really need to resolve this as I also need to add more rows and I want it to look good with a lot more traffic hitting the site and sales are critical. Thank you so much!

    #1362401
    Christopher
    Moderator

    Hi there,

    Please add this code:

    @media (max-width: 979px){
    .x-block-grid.three-up>li {
        width: 28%;
        margin: 0 1% !important;
    }
    }

    Find this code and remove margin properties:

    @media (max-width: 979px){
        .x-block-grid.three-up>li:nth-child(3n+1) {
            clear: both;
            margin-right: 2% !important;
            margin-top: 2% !important;
        }
    }
    

    Hope it helps.

    #1363203
    Lance B
    Participant

    Awesome! One final question: Is there a way to make the block grid center no matter what size the screen is? See attached…

    #1363768
    Lely
    Moderator

    Hello Lance,

    Please also try adding this custom CSS:

    .x-block-grid {
    margin: 0;
    }
    .x-block-grid .x-block-grid-item {
    float: none;
    display: inline-block;
    }

    Hope this helps.

    #1363774
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in and for sending us the screenshot. To make sure that the block grid items are always at the center, please have the code from our previous reply updated and make use of this code instead:

    
    
    @media (max-width: 979px){
      .x-block-grid {
        width: auto !important;
        text-align: center;
        margin: 0 auto;
      }
      
      .x-block-grid.three-up>li {
        width: 31.333%;
        margin: 0 1% !important;
      }
    }

    Please take noticed that I have adjust the width from 28% to 31.333% to have a balance width.

    Hope this helps. Please let us know how it goes.

    #1365251
    Lance B
    Participant

    That works beautifully! Thank you!!!

    #1365436
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-1347233 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>