I've encountered a question where the provided answers do not seem to solve my problem. I attempted to adjust the padding and margin-bottom on the Divs, but with no success.
My goal is to minimize the gap between these three divs:
https://i.sstatic.net/gLWDD.png
.center-div {
margin: 0 auto;
width: 150px;
border-radius: 3px;
}
.title_top,
.title_center,
.title_bottom {
margin: 0 auto;
/* float:left; remove */
padding: 0 5px;
margin-bottom: 0;
}
h1 {
color: #111;
font-family: 'Helvetica Neue', sans-serif;
font-size: 30px;
font-weight: bold;
letter-spacing: -1px;
line-height: 1;
text-align: center;
}
<div class='center-div' style="background-color:lightgrey">
<div class="title_top" style="text-align: center;">
<i class="fa fa-user"></i> Total Users
</div>
<div class="title_center" style="text-align: center;">
<h1>2500</h1>
</div>
<div class="title_bottom" style="text-align: center;">
<i class="fa fa-arrow-up" aria-hidden="true" style="font-weight: bold; font-size: large; color: #009900;"></i>
<i> 4%</i> From last Week
</div>
</div>