aspect-ratio: 16/9;
One line of css code to get it done
Width Height
The height parameter after / can be omitted and defaults to 1
aspect-ratio: 16/9;
One line of css code to get it done
Width Height
The height parameter after / can be omitted and defaults to 1