Use the font awesome to make websites common social tools contact icon

Source: Internet
Author: User

In the company project or personal site often there is a need, that is, at the bottom of the site to add some of their favorite social contacts, such as QQ, Weibo, Twitter and so on, if the traditional transduction way to make these icons will have two drawbacks:

1. Front-end engineers may not understand the art transduction related technology, and some small companies do not have the art of this position, so that their own material will be very troublesome

2. Traditional pictures can not flexibly adjust the size, such as when the image is enlarged after the content will become very vague, unable to adapt to more complex requirements

Using the font awesome This set of open-source icon libraries will be a good solution to the above two issues.

Specific steps for using font awesome:

1. Download the relevant compression package to the official website

2. After extracting four folders, font-awesome.css the CSS folder into your project CSS directory.

It's also very important! Be sure to put the font folder in your project CSS folder sibling directory, otherwise it will not display the icon correctly, many tutorials on the web did not mention this

3. The introduction of FONT-AWESOME.CSS in your HTML file can be used directly

Test:

Add at random location in HTML:

1 <  class= "fa fa-qq"></span>

The page will normally display a QQ icon indicating that the font awesome is working properly

You can also add related classes, such as FA-QQ-LG increase the size of the icon, related methods can go to the official website to see the specific documents

Use the font awesome to make websites common social tools contact icon

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.