Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #581944

    Hello,
    Thank you for the fantastic theme.
    Is it possible to display blog post grid view thumbnails in a hexagon shape, rather than a square?
    i.e. thumbnails in the following grid will appear as a hexagon, not square.

    I am working on a grid in which thumbnail images are on the left and the slide content on the right.
    I managed to make my thumbnails as hexagon in Chrome with -webkit-mask-image, however it works only in Chrome :(, not compatible with IE and Firefox.
    Thanks in advance

    
    .container_wrap .avia-content-slider .slide-image {
    margin-right: 10px;
    float: left;
    width: 125px !important; 
    background: none !important;
    border: none;
    }
    
    .container_wrap .avia-content-slider .slide-image img {
    position: relative;
    display: inline-block;
    width: 125px;
    overflow: hidden;
    text-align: center;
    -webkit-mask-image: url('/hex.png'); /* this is my hexagon mask 125px x 115px */
    -webkit-mask-repeat: no-repeat;
    }
    
    .container_wrap .avia-content-slider .slide-content{
    float: right;
    width: 65%;
    }
    
    • This topic was modified 10 years, 1 month ago by Post Manager.
    #582089

    Hi Post,

    This might be helpful to you: https://css-tricks.com/examples/ShapesOfCSS/

    Thanks,
    Rikard

    #582096

    Hello Rikard,
    Thank you for your reply.
    I was updating my original question with more details from my code.
    Yes, I saw that example on the internet and tried to apply (along with many other solutions I found from internet)
    However, for some reason I could not manage to do it.
    I can not find proper id or classes to replace with my current css above.
    I tried to replace #hexagon with .container_wrap .avia-content-slider .slide-content or .container_wrap .avia-content-slider .slide-content img, hoping it could work, but it did not.
    I will really appreciate if you can direct me to right solution as I feel I am missing a very simple detail.

    #582868

    Hi,

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

    Thanks,
    Rikard

    #585199

    Hello again,
    After playing with the codes for a while, I managed to show my thumbnail images as I expected.
    Thank you again for the direction Rikard, İt sure helped.
    You may mark this topic as solved if you wish.
    Have a great day!

    #585836

    Hi,

    Great, glad you got it working :-)

    Regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Hexagon Shaped Thumnail Images’ is closed to new replies.