Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Foundation Panels

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

<

p

Text content..

<

/p

<

/div

Try it »


Panel Color

Use .callout class changes the panel color to light blue:

Example

<

div

class=

"panel callout"

 

<

h3

Title

<

/h3

<

p

Text content..

<

/p

<

/div

Try it »


Rounded Panels

Use .radius class sets the panel to rounded corners:

Example

<

div

class=

"panel radius"

 

<

h3

Title

<

/h3

<

p

Text content..

<

/p

<

/div

Try 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"

<

h4

The Great Wall

<

/h4

<

p

He who has never been to the Great Wall is not a true man!!!

<

/p

<

/div

<

/div

Try it »