New Landing How can we help? Themeforest Theme Support Neighborhood How to align 3 divs (portfolio) to the center

Viewing 4 posts - 1 through 4 (of 4 total)
  • #217400
    solidsn2004
    Member
    Post count: 208

    Hi,

    I have inserted 3 portfolio images in the /corpo page but I would like the size of it to remain like if it was 4 (270×270 I think).
    My problem is that I can’t align those 3 images to the center of the page.

    I tried inserting this code but it doesn’t seem to be working:

    div.spb_content_element {
      width: 100%;
      display: inline
      margin-left: auto;
      margin-right: auto;
    }

    I am sorry but I am not strong with css so it’s a bit confusing to me…

    Looking forward to a solution.
    Thanks in advance!

    #217431
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Unfortunately that’s not possible, the theme is built on a 12 column grid. When you choose 3 columns it is 4 | 4 | 4 and 4 columns is 3 | 3 | 3 | 3

    For you to center the 3 items in a 4 column format, it would have to be

    1.5 | 3 | 3 | 3 | 1.5 and that’s not possible as you can’t have half columns

    – Kyle

    #217446
    solidsn2004
    Member
    Post count: 208

    Thanks for the reply Kyle.

    I have used the following code although is an approximation in pixels:

    ul.portfolio-items.standard-portfolio.filterable-items.row.clearfix{
    width: 930px;
    margin-left: auto;
    margin-right: auto;
    }

    It looks like it works ok even in different size screens.
    Thanks for your reply.

    #217450
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great

    – Kyle

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register