you can also use jQuery, try posting your code. Definitely agree on the accessibility aspect of using the data-attr trick. Wrap to new line but do not wrap subsequent div elements, Fill remaining vertical space with CSS using display:flex, CSS- Getting 100% width div to wrap under another [jsfiddle]. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. With masses of cool on line unblocked computer games, you might play as numerous as you wish, players, even at personnel or work. Let's say, you want the label to break should it be too long for the box. Break text using the default line break rule. Just like a real line break wont do anything. But the is an inline element. Source: elipapa.github.io. I have successfully implemented word-wrapping using Javascript. Example 1: When width is 200px HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content= "width=device-width, initial-scale=1.0" /> <style> .word { Google Sites is a popular platform for hosting unblocked games, as it allows users to easily create and share . The break-after property extends the CSS2 I shame-facedly don't know Javascript well enough to use it, and actually this site is already riddled with jQuery overlaps and issues using further Javascript worries me. The live preview here doesn't work for me, but, Sorry but the question was how to do it in CSS, Cause line to wrap to new line after 100 characters, How Intuit democratizes AI development across teams through reusability. Such settings would well be within the scope of CSS, but there is no definition or public draft that would address such issues. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. You can then add the property in order to break the string in sensible places that will make it easier to read. Always insert a page-break after a