I am using this code to display a background image that takes the full vertical height of the browser.
<div id="outer"></div>
CSS
#outer {
background-image: url(https://www.mydomain./image.jpg);
height: 100vh;
background-size: cover;
background-repeat: no-repeat;
}
I am looking to place a div inside, which is both vertically and horizontally centered in the middle of the image for all screen resolutions.
So far I have been unsuccessful with everything I tried. This needs to be supported by majority of browsers.