Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter communi3

    (@communi3)

    Perfect, but How can I change this?
    Thank’s

    Thread Starter communi3

    (@communi3)

    I’m sorry, is “PROYECTOS” and “OTROS PROYECTOS” I would like 3 or 4 columns centered, not 2 columns.
    Thank’s

    Thread Starter communi3

    (@communi3)

    Thanks. I’ve put the same code to TC Custom JavaScript:
    (function($){

    if ( matchMedia( ‘only screen and (min-width: 768px)’ ).matches ) {

    $(‘.roll-project’).each(function(){

    var projItem = $(this).find(‘.project-item ‘);
    var itemCount = projItem.size();
    var itemWidthTotal = projItem.outerWidth()*itemCount;
    var visibleSpace = $(this).outerWidth()-itemWidthTotal;

    if(itemCount < 5 && itemWidthTotal < $(this).width()){

    $(this).css({
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    ‘margin-left’: visibleSpace/2+’px’
    });

    }

    });

    }

    })(jQuery);

    ———AND I ADD THIS CSS———————-
    @media only screen and (max-width: 768px){
    .panel-grid-cell {
    display: table-cell;
    vertical-align: middle;
    padding-left: 10px;
    padding-right: 10px;
    }
    }

    @media only screen and (min-width:768px){
    .project-wrap{
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    }

    .roll-project.fullwidth .project-item {
    width: 50%;
    }

    }

    ————–THE RESULT IN PROJECTS IS———————–
    http://rfserveis.com/
    I don’t want 2 columns in pc and tablet because the margin is really big.

    Thanks

    Thread Starter communi3

    (@communi3)

    Thank’s for your answer. But don’t work. I want to center the results when I click on every buttons (‘Escaleras’, ‘Barandillas’) When I have all the results is not a problem, but when I select one Button I have a lot of margin right.

    Thank’s

Viewing 4 replies - 1 through 4 (of 4 total)