Next, add some CSS styles to the <form>
component and <img>
result. You will want to use a flexbox layout to allow the <input>
and <button>
components to be placed in a row. The <input>
element should also stretch to fill the remaining width.
The <img/>
result can also be displayed using FlexBox to automatically resize the generated image to the parent width
"request-form"
to the form and "generated-image"
to the image tag.<form>
to be a flex container and set the text input to grow to fill the remaining width.To find out more about flexbox, or anything else you need to know, ask me here: