FreeCodeCamp(Part 2)

  • Use Spans for Inline Elements

You can use spans to create inline elements. Remember when we used the btn-block class to make the button fill the entire row?
This image illustrates the difference between inline elements and block-level elements:

image.png

By using the span element, you can put several elements together, and even style different parts of the same element differently.
Your span element should be inside your p element

  • Create a Custom Heading
  • Add Font Awesome Icons to our Buttons

Font Awesome is a convenient library of icons. These icons are vector graphics, stored in the .svg file format. These icons are treated just like fonts. You can specify their size using pixels, and they will assume the font size of their parent HTML elements.
You can add Font Awesome to any app just by including it by adding the following code to the top of your HTML:
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
The i element was originally used to make other elements italic, but is now commonly used for icons. You add the Font Awesome classes to the i element to turn it into an icon, for example:

<i class="fa fa-info-circle"></i>

Use Font Awesome to add a thumbs-up icon to your like button by giving it an i element with the classes fa and fa-thumbs-up.

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,186评论 0 10
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,602评论 5 6
  • 岁月揉碎了古韵,升起了一缕风尘,纤指拂去了霜痕,惊醒了一夜梦魂。古道荒草湮没了伊人清浅的足迹,却将相思撒落一地。轻...
    曾鸿阅读 3,730评论 0 2
  • 1、刷朋友圈与做短线的能量消耗,相当于过马路。 2、撰写关于房产价格资产价格变化的逻辑——各种会议,包括亲子沟通也...
    103d2031e8c2阅读 1,540评论 0 0
  • 今天上午,国内首个 SaaS 模式的云告警平台 OneAlert 正式发布 ios 版 APP,每个 ios 用户...
    OneAPM阅读 2,994评论 0 0

友情链接更多精彩内容