Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1364444
    charlescthomson
    Participant

    Howdy Support!

    I’ve sifted through the forum and found that there may be an solution to my issue. However, I haven’t had any success putting the solution to practice.

    I would like to:

    – Adjust the space between columns (1/3, 2/3 layout)
    – Apply these changes to a single page (not the entire site)
    – retain the responsive nature of the theme

    I am currently using the following custom css with some success:

    @media ( min-width: 768px ) {

    .x-container:not(.marginless-columns) .x-column.x-1-3 {
    margin-right: 2%;
    width: 32%;
    }

    .x-container:not(.marginless-columns) .x-column.x-2-3 {
    width: 66%;
    margin-right: 0%;
    }

    .x-container:not(.marginless-columns) .x-column {
    float: left;
    }

    .x-container:not(.marginless-columns) .x-column:last-child {
    margin-right: 0px !important;
    }

    }

    I nabbed this from another forum discussion.
    However, I would like to have the space between the columns match the space between section 1 and section 2 (See uploaded image). I’ve tried variables with the margin right % but nothing seems to work.

    Any help would be appreciated!

    http://www.mrstbnb.com

    #1364614
    Joao
    Moderator

    Hi There,

    Your image did not upload and based on your website it is not very clear what you are trying to achieve.

    Please provide an image up to 500kb and let us know more details if you judge necessary.

    Thanks

    #1364624
    charlescthomson
    Participant

    I would simply like to reduce the white space between columns.
    I do not want to use marginless columns and then adjust the padding.

    #1364896
    Jade
    Moderator

    Hi there,

    Please try this code:

    @media (min-width: 768px) {
     .home #x-section-2 .x-column.x-sm.x-1-3 {
         width: 33%;
         margin-right: 1%;
     }
    }

    Hope this helps.

    #1365836
    charlescthomson
    Participant
    This reply has been marked as private.
    #1366010
    Jade
    Moderator

    Hi there,

    Your login page requires and additional logins to be accessed. Kindly provide those details as well so that we can check this further.

    Thank you.

    #1366014
    charlescthomson
    Participant
    This reply has been marked as private.
    #1366046
    Jade
    Moderator

    Hi there,

    The code that you have added in the customizer didn’t work because there is an extra } before it which causes an error in the CSS.

    I have gone ahead and remove it and the works now.

    Hope this helps.

    #1367033
    charlescthomson
    Participant
    This reply has been marked as private.
    #1367463
    Rue Nel
    Moderator

    Hello There,

    Using the given should have work. The problem is that you have adjusted the margin and it is the same with the margins of the first section. Please make sure that both sections has the same margin of 20 pixels left and right. Please check out this screenshot: http://prntscr.com/e7lrn8

    Hope this helps.

    #1367848
    charlescthomson
    Participant

    Margins were originally the same for both sections at 20 px. As explained in a previous thread post:

    ” Thanks seems to have done the trick!
    However, now the image on the right doesn’t seems to line up properly. I tested it on two different monitor sizes. (see uploaded picture support4)

      I attempted to fix this issue by adjusting the sections margin but that doesn’t seem to help…

    I’ve uploaded screen shots of both sections with the same margins of 20 pixels with the issue unresolved.

    Any help would be appreciated!

    #1368128
    Rad
    Moderator

    Hi there,

    It’s because of existing customization related to column size. Regardless of margin or padding, space will still appear since column size is not properly calculated.

    Change this existing CSS,

    .home #x-section-2 .x-column.x-sm.x-1-3 {
        width: 33%;
        margin-right: 1%;
    }

    to this

    .home #x-section-2 .x-column.x-sm.x-1-3 {
        width: 33.66%;
        margin-right: 1%;
    }

    That space is the missing 0.66%

    Cheers!

    #1374076
    charlescthomson
    Participant

    Thanks!

    That did the trick!
    However, I tried to duplicate this with my third section without any success!

    This is what I’ve tried for a 2/3 layout:

    .home #x-section-3 .x-column.x-sm.x-2-3 {
    width: 66.34%;
    margin-right: 1%;
    }

    As a result, I’me seeing a gap on the right side again (as with section 2 before it was solved).

    Any thoughts?

    Thanks!

    #1374555
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! Since the right size has a width of 30.66666%, you can make use of this code instead:

    .home #x-section-3 .x-column.x-sm.x-2-3 {
      width: 68.33333%;
      margin-right: 1%;
    }

    Please let us know if this works out for you.

    #1374854
    charlescthomson
    Participant

    Ah!

    My math was wrong – my bad!

    Thanks for all your help!

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