Posted in
5827
11:08 pm, October 24, 2022
four box section template in foundation with classes find and replace (4 box)
this section uses the large-auto classes so you can add or remove boxes easily.
find and replace the name "boxsection" to rename your new classes for the section
I have layed this one out a bit easier to copy and paste into the layouts, usually i seperate the css into its own style sheet as well. rather than inline but inline is ok for testing the section.
placeholder image example added for box 1
added additional classes to wrap the cell items as well so you can show or hide them in the css if needed.
HTML
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.5/css/foundation.min.css" /> -->
<style>
/* boxsection */
.boxsection-wrap {}
.boxsection-inner {}
.boxsection-title {}
.boxsection-boxes {}
.boxsection-box {}
.boxsection-box-image {
height:220px;
background:#999;
}
.boxsection-box-title {}
.boxsection-box-text {}
.boxsection-box-link {}
.boxsection-box-link a {}
.boxsection-cell-1 {}
.boxsection-cell-2 {}
.boxsection-cell-3 {}
.boxsection-cell-4 {}
.boxsection-1 {}
.boxsection-2 {}
.boxsection-3 {}
.boxsection-4 {}
.boxsection-1 .boxsection-box-image {
background:url(https://unsplash.it/900/700) center no-repeat;
background-size:cover;
}
/* boxsection */
</style>
<section class='boxsection-wrap'>
<div class='grid-container'>
<div class="grid-x grid-padding-x grid-margin-x">
<div class="large-12 cell">
<div class="boxsection-inner">
<div class="boxsection-title">
<h2>Box Section Title</h2>
</div>
<div class="boxsection-boxes">
<div class="grid-x grid-margin-x">
<div class="large-auto cell">
<div class="boxsection-box boxsection-1 boxsection-cell-1">
<div class="boxsection-box-image">
</div>
<div class="boxsection-box-title">
My Title
</div>
<div class="boxsection-box-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
</div>
<div class="boxsection-box-link">
<a href="#!">Read More</a>
</div>
</div>
</div>
<div class="large-auto cell boxsection-cell-2">
<div class="boxsection-box boxsection-2">
<div class="boxsection-box-image">
</div>
<div class="boxsection-box-title">
My Title
</div>
<div class="boxsection-box-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
</div>
<div class="boxsection-box-link">
<a href="#!">Read More</a>
</div>
</div>
</div>
<div class="large-auto cell boxsection-cell-3">
<div class="boxsection-box boxsection-3">
<div class="boxsection-box-image">
</div>
<div class="boxsection-box-title">
My Title
</div>
<div class="boxsection-box-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
</div>
<div class="boxsection-box-link">
<a href="#!">Read More</a>
</div>
</div>
</div>
<div class="large-auto cell boxsection-cell-4">
<div class="boxsection-box boxsection-4">
<div class="boxsection-box-image">
</div>
<div class="boxsection-box-title">
My Title
</div>
<div class="boxsection-box-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
</div>
<div class="boxsection-box-link">
<a href="#!">Read More</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
Box Section Title
My Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
My Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
My Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
My Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis rutrum sapien non ornare sagittis. Fusce quis dignissim felis. Pellentesque iaculis nisl et est ultricies, id mollis lorem volutpat. Praesent nec nunc vel quam facilisis scelerisque a ut orci. Sed sed enim vestibulum ex commodo venenatis vitae in mi. In eu velit sed nunc euismod tempor ac at odio. Mauris sit amet mi ac turpis rutrum congue sit amet id nunc.
View Statistics
This Week
169
This Month
606
This Year
2402
Add Comment
Other Items in sections
slick slider section quick add
subscribe to newsletter section example
four box section template in foundation with classes find and replace (4 box)
four box responsive section with all classes find and replace boxsection title foundation grid (4 box)
two box responsive section with all classes find and replace boxsection title foundation grid (2 box)
basic section item with foundation wrap and grid - single item in section
html and css hoizontal simple timeline section in foundation
responsive three box section with tabular data or table data
stackable bio or biography list with portrait image title and text
easy section wrap in foundation - 3 boxes responsive
easy section wrap in foundation
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