so I'm trying to align a chevron arrow in the center of my screen using flexbox and bootstrap but whenever I try to use align-self: center;
or align-content: center;
it doesn't do anything, my arrow just align's itself horizontally and not vertically, Would you guys have any short way to achieve what I am trying to do using flexbox?
Here is my code:
html
{
width: 100%;
height: 100%;
}
body{
width: 100%;
height: 100%;
background-color: white;
}
#arrow
{
color: grey;
font-size: 30px;
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<i id="arrow" class="fas fa-chevron-down d-flex justify-content-center align-self-center"></i>