Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #981073

    Hi
    I am using images 180×180 for the flags on this page

    but the images are stretching to the size of the box. how can I centre them and keep them the correct size in the box?

    and I want to edit the background colour and border of the box

    thanks!

    #981646

    Hi

    no response yet :)

    thanks

    #981977

    Hi,

    Thank you for using Enfold.

    Use this css code to set the actual width of the images.

    .grid-image img {
        width: auto;
        display: block;
        margin: 0 auto;
    }

    Best regards,
    Ismael

    #982070

    Hi Ismael

    I added this code:

    .grid-image img {
    width: 128px !important;
    display: block;
    margin: 0 auto;
    }

    my images are 128 x128 but they are still stretching to fit.

    thanks!

    #982072

    Hi

    sorry, caching issue in chrome, it worked, but how do I make the bounding box area 128 in height as well, and edit the background colour?

    thanks!

    #982672

    Hi

    I am only trying to target specific portfolio grids as it was affecting the whole site.

    I have given the portfolio grid a custom css name of “continents”

    this is my code so far – I am trying to have the icons smaller in the space and SQUARE – I tried using a png 227×227 transparent dimensions but it ignores this
    ALSO I am trying to remove the background and add a line border

    .continents {
    .grid-image img {
    height: 160px !important;
    display: block;
    margin: 0 auto; }

    .attachment-portfolio_small size-portfolio_small wp-post-image
    {background-color:transparent !important; }
    }

    thanks!

    #982909

    Hi,

    Thank you for using Enfold.

    The previous css code should have worked. Please try these to remove the background and borders.

    .continents .grid-image img {
        width: auto;
        display: block;
        margin: 0 auto;
    }
    
    .continents article.main_color {
        background: transparent;
        box-shadow: none;
        border: 0;
    }

    Best regards,
    Ismael

    #984238

    Hi

    very close thanks, but as you can see it is cutting off the top and bottom of the image, is that fixable?
    http://wpg.com.gridhosted.co.uk/wp-content/uploads/2018/07/icon.png

    and how can I add a border to the {square) image icon

    thanks!

    #984427

    Hi,

    The American flag is much larger compare to the rest of the flags. (see private field)

    What do you mean by “{square) image icon”?

    Best regards,
    Ismael

    #984632

    Hi

    this is what I am trying to do. but the actual icon bounding box is rectangular and it cuts off the image

    http://wpg.com.gridhosted.co.uk/wp-content/uploads/2018/07/icons.png

    thanks!

    #985075

    Hi,

    You can apply the border using css. You don’t have to add it to the image directly.

    #top .continents .isotope-item {
        border: 1px solid #ffffff;
        padding: 20px;
        margin-right: 10px;
    }
    
    #top .continents .grid-image img {
        width: auto;
        display: block;
        margin: 0 auto;
    }

    Best regards,
    Ismael

    #985104

    perfect, thanks!

    #985709

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Don’t forget to bookmark Enfold Documentation for future reference.

    Thank you for using Enfold :)

    Best regards,
    Basilis

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Grid portfolio thumbnails’ is closed to new replies.