My container is flexible in size, adjusting based on how the user moves elements around the screen. Inside this container, there is both an image and text. The image takes up 80% of the height of the container while the text should take up the remaining 20%. However, I have encountered an issue where height: 80%
works well for the image but font-size: 20%
does not work as expected for the text. Using vm or vh is not a viable solution since the size is not directly related to the screen size.