Edit This Code:
<!DOCTYPE html>
<html>
<head>
<style>
p.one {
    max-width: 400px;
    min-width: 100px;
    background-color: yellow;
}

</style>
</head>
<body>

<h2>Set The max-width and min-width of an Element:</h2>
<p>Resize the browser window to see the effect.</p>

<p class="one">This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.</p>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy