I want to make a component that has some text at the top then displays an image beneath. The width of the component should always be fixed and the image inside it needs to fill the width of the component but the height of the image needs to maintain the aspect ratio of the image. This would mean that the height of the component must hug to the image so the component height will fluctuate depending on the aspect ratio of the image. How do I do that please?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.