I am facing a straightforward use case where I have an image and a div containing text.
The current setting for the div is flex column.
My goal is to change the flex setting to row so that the text and image appear side by side.
Despite having the correct settings for the text flexbox, the image still displays above the text. Can anyone identify the issue in my code?
.promptParent {
display: flex;
flex-direction: row;
}
.prompt {
position: absolute;
width: 540px;
height: 180px;
left: 450px;
top: 67px;
font-family: Coiny;
font-style: normal;
font-weight: normal;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
h1 {
font-size: 72px;
}
h2 {
font-size: 36px;
margin-bottom: 0;
margin-top: 0;
}
<div class="promptParent">
<div class="prompt">
<h1>Sketch</h1>
<h2>90% Dog</h2>
<h2>10% Human</h2>
</div>
<a href="https://www.google.com">
<img src="/" alt="Refresh Button for Prompt" />
</a>
</div>