This is my approach to implement a simple diary day:
<div class="panel panel-primary">
<div class="panel-heading">June</div>
<div class="panel-body">
25
<br>
<span class="glyphicon glyphicon-time"></span>
</div>
</div>
and here is the css code:
.panel{
border-color:#EEEEEE !important;
width: 150px;
}
.panel > .panel-heading {
background-color: greenyellow;
color: white;
height: 40px;
text-align: center;
border-color:black !important;
font-size: 20px;
}
.panel> .panel-body{
text-align: center;
font-family: "Comic Sans MS";
font-size: 35px;
}
.glyphicon{
font-size: 20px !important;
text-align: left !important;
}
What I want is to align the glyphicon at the left, but because of been nested to panel-body, which alignment is center, this cannot be happened. Even if i tried "!important".
Any help is welcome