I want the image to change to the same height as my 3 lines of h1 elements. Then when the screen is narrow or its viewed from an iphone/smartphone I’d like the 3 lines of h1 elements to be the same width as the img. I tried flex stretch but I think I need another div. I worked on it for a while and but I can’t figure it out.
code pen link: https://codepen.io/DesignAttract/pen/XeQejV
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
</head>
<style>
img{background-color: #89A4B2;
border-radius: 10px;
padding: 20px;
}
h1{background-color: #80D2FF;
border-radius: 10px;
padding: 20px;
font-family: 'Roboto Mono', monospace;
}
</style>
<body>
<div class="container">
<div class="row">
<img src=https://image.flaticon.com/icons/svg/349/349356.svg height>
<div class="col">
<h1>Hello</h1>
<h1>I'm K. McFarland</h1>
<h1>Aspiriing Web developer</h1>
</div>
</div>
</div>
</body>