I have the logo and a black background triangle. How to position the logo to always stay in the center of the triangle even changing the resolution?
<imgclass="img-responsive triangulo-laranja" src="{{ asset('storage/triangulo.fw.png') }}">
<div class="img-responsive triangulo-logo">
<img class="img-responsive logo" src="{{ asset('storage/logo.png') }}">
</div>
.triangulo-laranja {
position: absolute;
top: 0;
left: 0;
z-index: 997;
width: 85%;
height: 90%;
opacity: 0.85;
}
.triangulo-logo {
background-image: url('../../storage/triangulo-logo.fw.png');
position: absolute;
top: 0;
left: 8%;
z-index: 998;
width: 600px;
height: 200px;
}
.logo {
position: relative;
top: 0;
left: 50%;
margin-left: -95px;
z-index: 999;
}