What my problem is, that i cant align the text to center horizontally. Vertically, i aligned it the center, but horizontally, i cant. (When the text is longer, its centered horizontally?! If i see it right.)
I tryed adding the <a>
element display:block
and text-align:center
, but it didnt solved my problem.
I attach a photo of the site.Photo-Click here
The <a>
element is in a <h2>
element.
<h2>
css:
line-height: 22px;
margin-top: 10px;
margin-bottom: 5px;
font-size: 16px;
height: 55px;
font-weight: 600;
display: flex;
align-items: center;
text-align: center;
The <a>
-element css:
color: #333;
-webkit-transition: color .5s;
-moz-transition: color .5s;
-ms-transition: color .5s;
-o-transition: color .5s;
transition: color .5s;
What am i doing wrong?