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

    Hi there,

    using enfold on website build number 5 now. Loving it!

    How can i have the portfolio item centred vertically in each of the tiles? Below is what i used so far to have the title display on hover. It is currently horizontally centred, but not vertically.

    .image-overlay-inside:before{
    display: none !important;
    }
    .image-overlay {
    background: #ffffff;
    }
    .grid-image:before {
    content: attr(title);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1000;
    text-align: center;
    opacity: 0;
    font-weight: 200;
    font-size: 24px;
    color: #ffffff !important;
    top: 50%;
    }

    .grid-image:hover:before {
    opacity: 0.9;
    }

    .grid-image:before{
    transition: all linear 0.2s;
    }

    .grid-content {
    display: none !important;
    }

    #block-post article .slide-content {
    position: absolute;
    top: 0;
    }

    #631767

    Hi clairemartindigital,

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #631775

    Oops – please see below

    #631777

    Hello again,

    I realised that my question was unclear…

    The question should be: How can I have the portfolio item title centred vertically? You can see it currently is a little too low.

    #632982

    Hi,

    Would you mind posting us a screenshot/mockup of what you would like to achieve? You can upload the screenshot to imgur.com or dropbox and share the link here :)

    Best regards,
    Andy

    #633349
    #633611

    Hi,

    hm? it’s unclear to me where to look at on your website. I can’t find the elements in question and not sure what you want to show us with the red arrow. Can you make things clear for us please?

    Best regards,
    Andy

    #633614

    Sure,

    if you go to:

    http://globalspeed.com.au/#product

    scroll down and you see the product portfolio grid. if you move your mouse over obe of the tiles you will see the title appear. That title is what we are talking about.

    #633628

    Hi,

    now I get it, thx. Use this code inside of Quick CSS field:

    .grid-image:hover:before {
    top: 50px;
    }
    

    and adjust as needed.

    Best regards,
    Andy

    #633635

    thanks andy, the problem is now that the image resizes depending on browser size. but the title stays fixed at for example top: 86px; is there a way to have the title adjust to the size of the tile?

    thanks

    #633659

    Hi,

    you could add media queries to my code, to adjust it for different screen sizes, something like:

    @media only screen and (max-width: 767px) {
    .grid-image:hover:before {
    top: 20px;
    }}
    

    Adjust as needed.

    Best regards,
    Andy

    #634331

    Thanks Andy, this ticket can be closed.

    #634466

    Hi,

    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Portfolio grid titles’ is closed to new replies.