My title changes according to data coming.But header lengths are different and appearance changes.I need to fix the view.These titles are in the middle of the screen.But as the writing length increases, the view is not what I want.I want the titles to be right in the middle of the screen and look like the first pictureWhere did I go wrong?what should I do
home.html
<ion-row>
<ion-col col-7>
<div class="baslikline"></div>
</ion-col>
</ion-row>
<ion-row>
<ion-col col-12 class="baslik">
<h3 >{{baslik}}</h3>
</ion-col>
</ion-row>
home.scss
.header{
color:white;
text-align: center;
position: relative;
top: -57px;
font-size: 20px;
width: auto;
height: auto;
clear:both;
}
.header h3{
font-size: 20px;
}
.headerline{
width: 50px;
height: 47px;
border-bottom: 3px solid #ef3a4f;
text-align: center;
margin-left: auto;
margin-right: auto;
display: block;
position: relative;
top: -18px;
}