JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">
<p>
This is a test. This is a test.This is a test.This is a test.This is a test.This is a test.This is a test.This is a test.This is a test.
</p>
<img src="https://hackernoon.com/hn-images/0*xMaFF2hSXpf_kIfG.jpg" alt="Girl in a jacket" width="500" height="600">
</div>
CSS
#test {
max-height: 200px;
max-width:200px;
overflow: hidden;
}