How to create an HTML element that's always on screen
I’m trying to create an HTML, maybe a div to behave like the following:
- Resize automatically his height to be 100% based on your window
- Adjust it’s width to maintain constant proportions - example width would be always equal to 4/5 of his height.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×