How to make text as large as possible while wrapping only twice in CSS?

126 views Asked by At

How can I use CSS to make the font size of text as big as possible but only wrap twice?

Example of what I mean: I'd like to turn this:

img1

into this:

img2

Here is the sample code I'm working with:

<style>
div{
   width:250px;
   height:125px;
   padding:10px;
   background-color:yellow;
   border:1px solid black;
}
</style>
</head>
<body>
<div>How can I make this text wrap only twice (has two lines) while also making the font size as large as possible?</div>
</body>
0

There are 0 answers