Automatic way to wrap text into a new element without having to do it manually or using a .js/js framework
P粉148782096
P粉148782096 2023-09-14 13:44:44
0
2
374

What I want to do is similar to text box wrapping in Photoshop/Illustrator/other software, you can write a paragraph but if it "overflows" it will jump to another text box and just like fill that text Same as the box.

If possible, I would like to be able to achieve this functionality using only HTML/CSS without using JavaScript, or at least know that this is not possible and I should turn to other solutions.

Visual example of what I want: https://i.stack.imgur.com/Dzbhv.jpg

I've tried every property I've seen for CSS text wrapping, and also web scraped, but I haven't seen anything that resembles what I want.

P粉148782096
P粉148782096

reply all(2)
P粉920835423

I got a pretty close suggestion elsewhere and I'm posting here to help others who may need it, there doesn't seem to be a free floating method, however, column-(x) Property seems to be the best option.

Some documentation can be found here: https://www.w3schools.com/css/css3_multiple_columns.asp

The way I implemented it is to assign it a self-describing class (threeColumnDiv in this case) and use it whenever I need it.

Another thing that seems like it might be ideal is the grid-row attribute (reference: https://www.w3schools.com/cssref/pr_grid-row.php).

If there's anything else needed, it seems like you're going to have to do it in a custom way, but I feel like these edge cases are rare and shouldn't be a big issue.

Thank you everyone for your response and help on this issue!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!