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

Foundation Icons

Foundation Icons

Foundation provides 283 icons, and you can use CSS to define their style and size.

Icons can be used in text, buttons, toolbars, navigation bars, forms, etc.

The following are examples of Foundation icons:

Refresh button: ** ** **

Check icon: ** ** **

Home icon: ** ** **


Icon Syntax

The syntax format for creating an icon is as follows:



name Replace the part with the icon's name.

To use icons we need to add the icon stylesheet file in the section:






Icon Examples

The following demonstrates examples of using icons:

Example

<

p

Cloud icon:

<

i

class=

"fi-cloud"

<

/i

<

/p

<

p

Cloud icon as a link:

 

<

a

href=

"#"

<

i

class=

"fi-cloud"

<

/i

<

/a

<

/p

<

p

Styled Cloud icon:

<

i

class=

"fi-cloud"

style=

"font-size:35px;color:red;"

<

/i

<

/p

<

p

Home icon:

<

i

class=

"fi-home"

<

/i

<

/p

<

p

Home icon on a button:

 

<

button

type=

"button"

class=

"button"

<

i

class=

"fi-home"

<

/i

Home

<

/button

<

/p

<

p

Home icon on a green button:

 

<

button

type=

"button"

class=

"button success"

   

<

i

class=

"fi-home"

<

/i

Home

<

/button

<

/p

<

p

Home icon on a large, light blue link button:

 

<

a

href=

"#"

class=

"button info large"

   

<

i

class=

"fi-home"

<

/i

Home

<

/a

<

/p

Try it »


Toolbar Icons

We can use the .icon-bar class to create a specified number of toolbar icons:

Example

<

div

class=

"icon-bar five-up"

 

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-home"

<

/i

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-bookmark"

<

/i

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-info"

<

/i

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-mail"

<

/i

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-like"

<

/i

<

/a

<

/div

Try it »

Icon description uses element:

Example

<

div

class=

"icon-bar five-up"

 

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-home"

<

/i

<

label

Home

<

/label

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-share"

<

/i

<

label

Share

<

/label

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-info"

<

/i

<

label

Info

<

/label

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-mail"

<

/i

<

label

Mail

<

/label

<

/a

<

a

href=

"#"

class=

"item"

<

i

class=

"fi-magnifying-glass"

<

/i

<

label

Search

<

/label

<

/a

<

/div

Try it »

.disabled class can make an icon unclickable:

Example

<

a

href=

"#"

class=

"item disabled"

 

<

i

class=

"fi-share"

<

/i

<

/a

<

a

href=

"#"

class=

"item disabled"

   

<

i

class=

"fi-mail"

<

/i

<

/a

Try it »

.vertical class is used to create a vertical toolbar:

Example

<

div

class=

"icon-bar vertical five-up"

  ....

<

/div

Try it »


Foundation Icon Reference Manual

For more about icons, you can refer to our Foundation Icon Manual.