How to align vertical center glyphicon in bootstrap?

Hi Friends 👋,

Welcome To aGuideHub! ❤️

Today, I am going to show you. How to align vertical center glyphicon in bootstrap with code example.

Here, we will use glyphicon glyphicon-object-align-vertical class to make a image in vertical center.

Glyphicon glyphicon-object-align-vertical

<i class="glyphicon glyphicon-object-align-vertical"></i>

Let’s look at the following example to understand how it basically works:

<!doctype html>
<html lang="en">
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap CSS -->
    <link href="[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <link rel="stylesheet" href="">
    <div class="col-md-12 w-25 bg-warning">
        <div class="row align-items-center" style="min-height: 100vh">
            <i class="glyphicon glyphicon-object-align-vertical" style="font-size:50px"></i>
    <!-- Bootstrap Bundle with Popper -->
    <script src="[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>


In the above code, we have used glyphicon glyphicon-object-align-vertical class to center the button.

Check the output of the above code example.

Bootstrap, Glyphicon

All the best 👍

Premium Content

You can get all the below premium content directly in your mail when you subscribe us


Portfolio Template

View | Get Source Code

Cheat Sheets

Cheat Sheets Books are basically Important useful notes which we use in our day-to-day life.

I'm working on some more Cheat Sheets book on Jquery, TypeScript, React js and for other languages. I will send it once it's completed.

Related Posts