score:1

Accepted answer

use display: flex to have image and text side by side . this is possible as default flex-flow value is row .

if wanted to prevent shrinking of image or anything in flex use flex-shrink: 0; but this works when you define the width height values

div {
  display: flex;
  flex-shrink: 0;
}

img {
  width: 100px;
  height: 100px;
}
<div style="marginleft: 20,wordwrap: " break-word ",width: 350">
  <h1 classname="text-4xl font-bold">vivamus suscipit tortor eget felis porttitor.</h1>
  <img alt="test" src="https://dummyimage.com/100" />
</div>


Related Query

More Query from same tag