Pulled Icons

There are instances where we need to pull the icons to either left or right to format the display of articles or any other content, which can be achieved without adding any additional styles.

Font Awesome has provided the below classes to achieve that

  • Class fa-pull-left to pull the icon left to the content
  • Class fa-pull-right to pull the icon right to the content
<i class="fa fa-quote-left fa-pull-left"></i>
<i class="fa fa-quote-right fa-pull-right"></i>

Examples

We can check the outcome of the below HTML document to see how it looks.

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body style="font-size: 40px;">    
    <h1>Pulled Icons</h1>
    <div>
        <i class="fa fa-quote-left fa-pull-left"></i>
        <i class="fa fa-quote-right fa-pull-right"></i>
        <p>...Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
    </div>
</body>
</html>

Overall

Font Awesome Icons can be either pulled left or right by just adding an additional class.

Related Links