I have check existing answers here. Unfortunately, it did not help at all. My question is particular to SVG image.
* {
box-sizing: border-box;
}
html, body{
max-width: 1280px;
width: 100%;
}
body{
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
<div class="wrapper">
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 807.2 400.42">
<defs>
<style>.cls-1 {
fill: #d1cfbf;
}</style>
</defs>
</svg>
</div>
I am trying to center the svg center horizontally and vertically. I have tried using Flexbox and absolute positioning. For some reasons, it does not align center.
PS: svg image is a dummy image but size is exact.