templates
Posted in
3142
2:50 am, February 5, 2024
4 box custom grid with responsive
simple 4 box 25% grid with a responsive break at 1024px to stack the boxes in the grid
HTML
<div class="grid-icons">
<div class="grid-icon-box">
grid item 1
</div>
<div class="grid-icon-box">grid item 2</div>
<div class="grid-icon-box">grid item 3</div>
<div class="grid-icon-box">grid item 4</div>
</div>
CSS
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap');
* {
box-sizing: border-box;
transition: all 0.2s;
}
.open-sans {
font-family:"Open Sans", sans-serif;
}
.grid-icons {
font-family:"Open Sans", sans-serif;
display: grid;
grid-template-columns: 24% 24% 24% 25%;
grid-template-rows: 100%;
grid-gap: 1%;
color:#FFF;
}
.grid-icon-box {
font-family:"Open Sans", sans-serif;
width:99%;
min-height:200px;
padding:20px;
text-align:center;
background:linear-gradient(purple,blue);
border-radius:10px;
}
.grid-icon-box svg {
display:inline-block;
}
@media(max-width:1024px) {
.grid-icons {
display:block;
grid-template-columns: auto;
grid-template-columns: auto;
}
.grid-icon-box {
grid-column: auto;
grid-row: auto;
margin-bottom:10px;
}
}
External Link for 4 box custom grid with responsive
View Statistics
This Week
39
This Month
248
This Year
3145
Add Comment
Other Items in templates
Related Search Terms
Other Categories in Code
alpine js apps c css factorio font awesome images linux quick modals sqlite site bugs site updates slick slider sliders testing windows apps apache api apps asp bat bootstrap bootstrap templates charts cookies core css css filters css grid design elements docker domains emoji fancybox fonts foundation framework gimp git html icons ideas image formatting images javascript javascript functions jquery js linux mac misc modals mysql nginx node php php errors php function php functions php simple html dom pi400 python react regex sections simple_html_dom simplepie php site bugs site documentation slick slider sql sqlite ssh sublime svg svg css templates tools virtual box vscode vue webdev windows windows 11 windows commands wordpress