I have this code inside a grid.
<div class="nav__logo nav__logo--height">
<a href="http://localhost/step-asia/">
<img src="assets/image/logo-1.png" alt="Step Asia Logo">
</a>
</div>
and this is the css style
.nav__logo {
border: 1px solid #f7b5b5;
text-align: center;
}
.nav__logo a {
display: table;
color: black;
text-transform: capitalize;
text-decoration: none;
}
.nav__logo--height {
height: 19px;
display: inline-block;
width: 100%;
}
.nav__logo img {
margin: 0 auto;
}
I tried using position property but its not the solution, there's a problem using it when resizing the screen. text-align doesn't works also since it's an image.
The DIV above is inside a grid column. Can you give an idea. Revising the code is acceptable, just need idea.