Foundation Panels
A Foundation panel is a module with a gray border and padding in the content. You can use .panel class to create:
Example
<
div
class=
"panel"
<
h3
Title
<
/h3
<
pText content..
<
/p
<
/divTry it »
Panel Color
Use .callout class changes the panel color to light blue:
Example
<
div
class="panel callout"
<
h3
Title
<
/h3
<
pText content..
<
/p
<
/divTry it »
Rounded Panels
Use .radius class sets the panel to rounded corners:
Example
<
div
class="panel radius"
<
h3
Title
<
/h3
<
pText content..
<
/p
<
/divTry it »
Custom Panels
You can use CSS to customize panels. In the following example we make the panel a card:
Example
<
style
.panel {
padding: 0;
border: none;
width: 50%;
}
div.container {
text-align: center;
padding: 15px;
margin-top: 20px;
}
img {
width: 100%;
}
<
/style
<
div
class=
"panel"
<
img
src=
"http://www.runoob.com/wp-content/uploads/2015/11/20121204024112919.jpg"
alt="Cinque Terre"
<
div
class=
"container"
<
h4The Great Wall
<
/h4
<
pHe who has never been to the Great Wall is not a true man!!!
<
/p
<
/div
<
/divTry it »