In the example below, transform: translate(-50%,-50%);
to hold a text in the middle of the element. But it is not a solution that works on all browsers. I would like to do it myself, but with simple css or even with jquery.
.artigo-content {
background: #fff;
color: #666666;
border: 1px solid #F0F0F0;
padding: 0 30px;
height: 100%;
text-align: center;
position: relative;
height:300px;
}
.artigo-inner {
width: 90%;
margin: auto;
position: absolute;
top: 50%; left: 50%;
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
<div class="artigo-main">
<div class="artigo-content">
<div class="artigo-inner">
<h3><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus at eleifend leo. Praesent eu ex ligula.</a></h3>
<p>Abril 26, 2018</p>
</div>
</div>
</div>