How to make this automatically multiline
P粉471207302
P粉471207302 2023-08-18 00:10:50
0
1
671
<p>How to make this automatically multi-line</p> <p>I'm using HTML and CSS</p> <p>This is my code (I modified it slightly since some of the code is from PHP): </p> <pre class="brush:php;toolbar:false;"><div style='border: 1px solid; padding: 10px;margin-top: 5px;'> <h2 style='margin: 0'>Name&nbsp-&nbsp#id</h2> <hr> <span>ContentContentContentContentContentContentContentContentContentContent</span> </div><br></pre> <p>How to use these:</p> <p>https://i.stack.imgur.com/tUPpO.png</p> <p>https://i.stack.imgur.com/oCwuA.png</p> <p>Convert to this (automatically skip a line): </p> <p>https://i.stack.imgur.com/PQxJS.png</p>
P粉471207302
P粉471207302

reply all(1)
P粉087951442

You can achieve this by adding word-wrap and/or overflow-wrap

<div style='border: 1px solid; padding: 10px;margin-top: 5px; max-width:200px'>
    <h2 style='margin: 0'>Name&nbsp-&nbsp#id</h2>
    <hr>
    <span style='word-wrap: break-word; overflow-wrap: break-word;'>
        ContentContentContentContentContentContentContentContentContentContent</span>
</div><br>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template