Image Grid

Hi

How could I get an image grid like www…conrodarcy.co.uk (Under “Explore nearby restaurants”) on my website www.freefalcon.co.uk. I only want two squares side by side - So i don’t the long one along the button.

Hi @envirogroup,

Thanks for reaching out.

The first URL that you provided isn’t working (with or without www). If it has a typo error then please provide the correct one.

Thanks!

Hi. It is www.conordarcy.co.uk

sorry

Hi @envirogroup,

It looks like it’s a custom one, this code is added in raw element

<div class="x-bnb-image-grid">

  <a href="#">
    <span class="bg" style="background-image: url(http://conordarcy.co.uk/wp-content/uploads/2018/09/pj-o-hares.jpg);"></span>
    <div>
      <span>PJ O'Hares</span>
      <small>Steakhouse and Cocktails</small>
    </div>
  </a>

  <a href="#">
    <span class="bg" style="background-image: url(http://conordarcy.co.uk/wp-content/uploads/2018/10/16402868_644522079081434_4147826187772753241_o.jpg);"></span>
    <div>
      <span> Rinas Italian </span>
      <small>Comfort Food at its Finest</small>
    </div>
  </a>

  <a href="#">
    <span class="bg" style="background-image: url(http://conordarcy.co.uk/wp-content/uploads/2018/10/13700019_974748562642859_7728573402272057404_n.jpg);"></span>
    <div>
      <span> McKevitts Hotel</span>
      <small>Schooners Bar &amp; Restaurant</small>
    </div>
  </a>

</div>

And this on Theme Options > CSS

.x-bnb-image-grid{
    display:-webkit-flex;
    display:flex;
    -webkit-flex-flow:row wrap;
    flex-flow:row wrap;
    -webkit-justify-content:space-between;
    justify-content:space-between;
    -webkit-align-items:stretch;
    align-items:stretch;
    margin:-10px;
}
.x-bnb-image-grid > a{
    display:-webkit-flex;
    display:flex;
    -webkit-flex-flow:column nowrap;
    flex-flow:column nowrap;
    -webkit-justify-content:flex-end;
    justify-content:flex-end;
    -webkit-align-items:flex-start;
    align-items:flex-start;
    -webkit-flex:1 1 360px;
    flex:1 1 360px;
    overflow:hidden;
    position:relative;
    z-index:1;
    margin:10px;
    min-height:300px;
    font-size:2rem;
    box-shadow:0 0.25em 1.5em rgba(0,0,0,0.35);
}
.x-bnb-image-grid > a:before{
    content:"";
    display:block;
    position:absolute;
    z-index:-1;
    top:-5px;
    left:-5px;
    right:-5px;
    bottom:-5px;
    background-color:rgba(21,21,21,0.65);
    transition:background-color 0.5s ease;
}
.x-bnb-image-grid > a:hover:before,.x-bnb-image-grid > a:focus:before{
    background-color:rgba(21,21,21,0.35);
}
.x-bnb-image-grid > a:hover > .bg,.x-bnb-image-grid > a:focus > .bg{
    transform:scale(1.1);
}
.x-bnb-image-grid > a:hover > div > small,.x-bnb-image-grid > a:focus > div > small{
    color:#ffffff;
}
.x-bnb-image-grid > a > .bg{
    display:block;
    position:absolute;
    z-index:-2;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-position:50% 50%;
    background-size:cover;
    transition:transform 0.5s ease;
}
.x-bnb-image-grid > a > div{
    width:100%;
    padding:1em;
    font-size:1em;
    line-height:1;
}
.x-bnb-image-grid > a > div > span{
    display:block;
    overflow:hidden;
    font-size:1em;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#ffffff;
}
.x-bnb-image-grid > a > div > small{
    display:block;
    overflow:hidden;
    margin:0.35em 0 0;
    font-size:0.575em;
    font-weight:700;
    letter-spacing:0.065em;
    line-height:1.4;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
    color:#ffffff;
    transition:color 0.5s ease;
}
.x-bnb-room-col-intro{
    padding:0 0 14px !important;
}
@media (min-width:768px){
    .x-bnb-room-col-intro{
        padding:1px 0 0 !important;
        text-align:right !important;
    }
}

You could also try having two essential grid, add the 2 item grid in top row, then 1 item grid to the second row. With essential grid, you can edit the skin and change its styling. Please check this https://www.themepunch.com/essgrid-doc/item-skin-editor/

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.