Okay
  Public Ticket #1341391
Force width or height portfolio image
Closed

Comments

  •  2
    leeuwpaard_admin started the conversation

    Hi there,

    Is there a css code that can be used to force the height or width for the single portfolio images?

    I can't seem to find anything in the settings to do this.

    Thanks!

  •  70
    mSupport replied

    Hello!

    Give me and exact example on what you want to do please so i can give the code.

    Thanks!

    Thank You!

  •  2
    leeuwpaard_admin replied

    I would like to give the images on the single portfolio a maximum height of about 650px. So portrait orientated images don't need scrolling like they do at the moment. But - if possible - while keeping the alignement centered. 

  •  70
    mSupport replied

    Hello!

    .single-portfolio .portfolio.style-2 .portfolio-gallery img {
        margin: 40px auto!important;
        width: auto!important;
        max-height: 650px!important;
        display: block!important;
    }

    Let mw know if you manage!

    Thanks!

    Thank You!