LATEST >>

Welcome Here And Thanks For Visiting. Like Us On Facebook...

EXEIdeas – Let's Your Mind Rock » CSS Codes / HTML-CSS-PHP-JavaScript » Honeycomb Style Responsive Grid Using Pure CSS

Honeycomb Style Responsive Grid Using Pure CSS

Honeycomb-Style-Responsive-Grid-Using-Pure-CSS
A cool hexagonal grid for images and text made in CSS and HTML. The grid shows images by default but once you hover over it reveals the text, with enough space for a short title on small screens and a title with a description on bigger screens. A pen created by codepen user web-tiki. Also, have a look at this 29 Pre-made HTML & CSS Website Widgets & Popups Bundle, which includes contact forms, subscribe forms, e-commerce popups, social buttons, and sidebars, all in one pack.

There are many code snippets available online or on many other blogs and websites, but everyone cannot optimize your blog or website, so you need some optimized code snippets. So now checkout out the code snippet for your blog and website that will give you all features for your desired code. Now grab the ready-to-use code and paste it where you want.

Features:

  1. Light Weight.
  2. Pure CSS.
  3. Cross Browser.
  4. No JQuery Files.
  5. Fully Customizable.
  6. Responsive.

How To Add Honeycomb Style Responsive Grid Using Pure CSS ?

There are a few easy and understandable steps to achieve your desired functionality that we are gonna share below. Follow each step perfectly.

Recommended For You:
Pure Vanilla JS Infinite Responsive Slider With Navigation

CSS:

<style type="text/css">
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');
body {
font-family: 'Montserrat', sans-serif;
background: #3ea0eb;
}
*, *::before, *::after {
box-sizing: border-box;
}
.honeycomb {
display: flex;
flex-wrap: wrap;
list-style: none;
justify-content: center;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0;
transform: translateY(34.375px);
}
.honeycomb-cell {
flex: 0 1 250px;
max-width: 250px;
height: 137.5px;
margin: 65.4761904762px 12.5px 25px;
position: relative;
padding: 0.5em;
text-align: center;
z-index: 1;
}
.honeycomb-cell__title {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
hyphens: auto;
word-break: break-word;
text-transform: uppercase;
color: #fff;
font-weight: 700;
font-size: 1.75em;
transition: opacity 350ms;
}
.honeycomb-cell__title > small {
font-weight: 300;
margin-top: 0.25em;
}
.honeycomb-cell__image {
object-fit: cover;
object-position: center;
}
.honeycomb-cell::before, .honeycomb-cell::after {
content: '';
}
.honeycomb-cell::before, .honeycomb-cell::after, .honeycomb-cell__image {
top: -50%;
left: 0;
width: 100%;
height: 200%;
display: block;
position: absolute;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
z-index: -1;
}
.honeycomb-cell::before {
background: #fff;
transform: scale(1.055);
}
.honeycomb-cell::after {
background: #3ea0eb;
opacity: 0.5;
transition: opacity 350ms;
}
.honeycomb-cell:hover .honeycomb-cell__title {
opacity: 0;
}
.honeycomb-cell:hover::before {
background: #72f88e;
}
.honeycomb-cell:hover::after {
opacity: 0;
}
.honeycomb__placeholder {
display: none;
opacity: 0;
width: 250px;
margin: 0 12.5px;
}
@media (max-width: 550px) {
.honeycomb-cell {
margin: 81.25px 25px;
}
}
@media (min-width: 550px) and (max-width: 825px) {
.honeycomb-cell:nth-child(3n) {
margin-right: calc(50% - 125px);
margin-left: calc(50% - 125px);
}
.honeycomb__placeholder:nth-child(3n + 5) {
display: block;
}
}
@media (min-width: 825px) and (max-width: 1100px) {
.honeycomb-cell:nth-child(5n + 4) {
margin-left: calc(50% - 275px);
}
.honeycomb-cell:nth-child(5n + 5) {
margin-right: calc(50% - 275px);
}
.honeycomb__placeholder:nth-child(5n), .honeycomb__placeholder:nth-child(5n + 3) {
display: block;
}
}
@media (min-width: 1100px) {
.honeycomb-cell:nth-child(7n + 5) {
margin-left: calc(50% - 400px);
}
.honeycomb-cell:nth-child(7n + 7), .honeycomb-cell:nth-child(7n + 5):nth-last-child(2) {
margin-right: calc(50% - 400px);
}
.honeycomb__placeholder:nth-child(7n + 7), .honeycomb__placeholder:nth-child(7n + 9), .honeycomb__placeholder:nth-child(7n + 11) {
display: block;
}
}

</style>

HTML:

<br><ul class="honeycomb" lang="es">
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/1">
<div class="honeycomb-cell__title">Diseño exclusivo</div>
</li>
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/2">
<div class="honeycomb-cell__title">Impermeables</div>
</li>
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/3">
<div class="honeycomb-cell__title">Tablero doble cara</div>
</li>
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/4">
<div class="honeycomb-cell__title">Maletín de empaque</div>
</li>
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/5">
<div class="honeycomb-cell__title">Antireflectivo<small>No vidrio</small></div>
</li>
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/6">
<div class="honeycomb-cell__title">6 fichas<small>1 de repuesto</small></div>
</li>
<li class="honeycomb-cell">
<img class="honeycomb-cell__image" src="https://source.unsplash.com/random/7">
<div class="honeycomb-cell__title">Tablero magnético</div>
</li>
<li class="honeycomb-cell honeycomb__placeholder"></li>
</ul>

Customization:

No need to customize it. Just copy-paste. Rest edit the code as per comments and need.

Recommended For You:
Make All External Link NoFollow And Internal DoFollow

Troubleshooting the Errors:

Do it with concentration and patience. Check your all steps again and all codes or scripts. If you find any error you can contact us anytime via comment or better via email, We are always here to help you.

Final Words:

That’s all we have. We hope that you liked this article. If you have any problem with this code in your template then feel free to contact us with a full explanation of your problem. We will reply to you as time allows us If you have any doubts or problems please comment below. We are happy to help you! If you liked this article, Don’t forget to share this with your friends so they can also take benefit from it and leave.

You Like It, Please Share This Recipe With Your Friends Using...

Be the first to write a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *