What's the state of the art in 2018? Can you have a DIV with a fixed aspect ratio fitted to the screen? Last time I've checked (in 2017) this was impossible without JS.
It's admittedly far from obvious, but that should be doable by determining the height of the DIV with the padding-top of a child element, and limiting the width with max-width limited to at max height * aspectratio, so it doesn't overflow the bottom if the page gets to wide. Not really anything fancy and new in there either.
EDIT: s/width/height, added half sentence explanation.
Sorry, I don't understand this.
max-width: calc(100vh * 16 / 9);That said for native apps be it desktop or mobile using native tools would be the way to go.
Happy for being pedantic?!
And if you're painful (sic) familiar with modern web development why are you still creating div soup?
That Web designers are still playing catchup with native RAD tooling from the 90's?
That React devs so enthusiastically re-discovered how 90's UI were keeping up to speed with slow hardware?
Or maybe because GPU acceleration requires CSS tricks with Z-Order to actually work?