{"id":4368,"date":"2024-04-15T02:30:30","date_gmt":"2024-04-14T18:30:30","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=4368"},"modified":"2024-04-15T02:30:30","modified_gmt":"2024-04-14T18:30:30","slug":"regulate-text-overlapping-and-line-breaking","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/en\/regulate-text-overlapping-and-line-breaking\/","title":{"rendered":"Regulate text overlapping and line breaking"},"content":{"rendered":"\n<div class=\"docs_rich-text w-richtext\">\n<p id=\"\">By default, text wrapping only occurs in specific circumstances, such as when there is a space or dash. This can lead to design and arrangement challenges for lengthy strings or series of characters (e.g., URLs) that exceed their container element.<\/p>\n<p id=\"\">Through the utilization of the word break, line break, and overflow wrap features, you have the ability to manage how your text is fractured and wrapped within elements. This enhances readability across diverse device dimensions and orientations, guaranteeing that the text wraps appropriately according to language-specific necessities, facilitating seamless multilingual support on your site.<\/p>\n<p id=\"\">In this tutorial, you&#8217;ll acquire knowledge on:<\/p>\n<ol id=\"\">\n<li id=\"\">The application of word breaking<\/li>\n<li id=\"\">The usage of line breaking<\/li>\n<li id=\"\">The implementation of text wrapping<\/li>\n<li id=\"\">Frequently Asked Questions (FAQ)<\/li>\n<\/ol>\n<h2 id=\"\">How to apply word breaking<\/h2>\n<p id=\"\">Utilizing word breaking (the &#8220;word-break&#8221; CSS property) enables you to modify the default line breaking behavior and indicate where line breaks should occur in text that may otherwise overflow. Word breaks can be employed to prevent awkward line breaks in content featuring compound words, or to conform to language-specific regulations and ensure correct visual presentation for an enhanced international user experience.<\/p>\n<p id=\"\">There are three options for word breaking:<\/p>\n<ul id=\"\">\n<li id=\"\"><strong id=\"\">Normal<\/strong> &#8211; the default setting which follows the standard rules for word breaking (i.e., breaking at spaces or hyphens)<\/li>\n<li id=\"\"><strong id=\"\">Break all<\/strong> &#8211; to prevent overflow, any word or character can break onto the next line (excluding Chinese\/Japanese\/Korean text)<\/li>\n<li id=\"\"><strong id=\"\">Keep all<\/strong> &#8211; for Chinese, Japanese, and Korean (CJK) text, words remain intact even if there is content overflow. Non-CJK text behavior mirrors that of <strong id=\"\">Normal<\/strong><\/li>\n<\/ul>\n<h6 id=\"\"><strong id=\"\">Pro tip: <\/strong>For further insights on the word-break property and to preview these options, visit the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/word-break\" target=\"_blank\" id=\"\" rel=\"noopener\">MDN web docs<\/a>.<\/h6>\n<h3 id=\"\">How to establish word breaks<\/h3>\n<p id=\"\">Prior to configuring word breaks, it is necessary to introduce a text component (e.g., rich text, paragraph, etc.) to the canvas.<\/p>\n<p id=\"\">To configure word breaks:<\/p>\n<ol id=\"\">\n<li id=\"\">Highlight the text component on the canvas<\/li>\n<li id=\"\">Navigate to the <strong id=\"\">Style panel<\/strong> &gt; <strong id=\"\">Typography<\/strong> &gt; <strong id=\"\">More type options<\/strong> &gt; <strong id=\"\">Breaking<\/strong><\/li>\n<li id=\"\">Choose a word break option from the <strong id=\"\">Word<\/strong> dropdown (e.g., Normal, Break all, or Keep all)<\/li>\n<\/ol>\n<p id=\"\">Similar to other styling attributes, you can apply word breaks to a parent element or breakpoint, and override it on child elements or different breakpoints.<\/p>\n<blockquote id=\"\"><p><strong id=\"\">Note:<\/strong> To prevent unexpected behavior on your published site, remember to remove any custom word-break CSS present.<\/p><\/blockquote>\n<h2 id=\"\">How to utilize line breaking<\/h2>\n<p id=\"\">Line breaking in Webflow (referred to as the &#8220;white-space&#8221; property in CSS) governs the treatment of whitespace characters (i.e., characters representing horizontal or vertical space between other characters) and newline characters (i.e., whitespace characters representing a line break), determining whether text wraps or overflows.<\/p>\n<p id=\"\">There exist six options for line breaking:<\/p>\n<ul id=\"\">\n<li id=\"\"><strong id=\"\">Normal<\/strong> &#8211; the default value which condenses sequences of whitespace and wraps text to the next line as necessary<\/li>\n<li id=\"\"><strong id=\"\">No wrap<\/strong> &#8211; condenses whitespace similarly to Normal but keeps text on a single line without wrapping, even if the text exceeds the space<\/li>\n<li id=\"\"><strong id=\"\">Pre<\/strong> &#8211; retains whitespace and line breaks, displaying text precisely as in the HTML source code<\/li>\n<li id=\"\"><strong id=\"\">Pre wrap<\/strong> &#8211; conserves whitespace while allowing text to wrap to the following line as needed<\/li>\n<li id=\"\"><strong id=\"\">Pre line<\/strong> &#8211; compresses whitespace, preserves line breaks, and permits text to wrap as required<\/li>\n<li id=\"\"><strong id=\"\">Spaces<\/strong> &#8211; maintains whitespace sequences, enables text wrapping at any point, and retains trailing spaces<\/li>\n<\/ul>\n<h6 id=\"\"><strong id=\"\">Pro tip: <\/strong>For an in-depth understanding of the white-space property and to preview these variations, refer to the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/white-space\" target=\"_blank\" id=\"\" rel=\"noopener\">MDN web docs<\/a>.<\/h6>\n<h3 id=\"\">How to configure line breaks<\/h3>\n<p id=\"\">Before setting line breaks, introduce a text element (e.g., rich text, paragraph, etc.) to the canvas.<\/p>\n<p id=\"\">To configure line breaks:<\/p>\n<ol id=\"\">\n<li id=\"\">Select the text element on the canvas<\/li>\n<li id=\"\">Access the <strong id=\"\">Style panel<\/strong> &gt; <strong id=\"\">Typography<\/strong> &gt; <strong id=\"\">More type options<\/strong> &gt; <strong id=\"\">Breaking<\/strong><\/li>\n<li id=\"\">Select a line break option from the <strong id=\"\">Line<\/strong> dropdown (e.g., Normal, No wrap, Pre, Pre wrap, Pre line, or Spaces)<\/li>\n<\/ol>\n<p id=\"\">As with other styling attributes, you can apply line breaks to a parent element or breakpoint, and modify it on child elements or different breakpoints.<\/p>\n<blockquote id=\"\"><p><strong id=\"\">Note:<\/strong> To avoid unexpected behavior on your published site, ensure any custom white-space CSS is removed.<\/p><\/blockquote>\n<h2 id=\"\">How to apply text wrapping<\/h2>\n<p id=\"\">Text wrapping (the &#8220;overflow-wrap&#8221; CSS property) empowers you to determine how words wrap when they surpass the width of their container, ensuring words are broken at the nearest suitable point within the container, thus preserving your design&#8217;s integrity and aesthetics.<\/p>\n<p id=\"\">There are three options for wrapping:<\/p>\n<ul id=\"\">\n<li id=\"\"><strong id=\"\">Normal<\/strong> &#8211; the default setting following the standard breaking rules (i.e., breaking at word spaces or hyphens)<\/li>\n<li id=\"\"><strong id=\"\">Anywhere<\/strong> &#8211; to prevent overflow, an otherwise unbreakable series of characters (e.g., a URL or long word) can be broken at any juncture if no other break points are available in the line<\/li>\n<li id=\"\"><strong id=\"\">Break word<\/strong> &#8211; functions analogously to the <strong id=\"\">Anywhere<\/strong> option, enabling normally unbreakable words to be fractured at arbitrary points if no other acceptable break points exist in the line<\/li>\n<\/ul>\n<h6 id=\"\"><strong id=\"\">Pro tip: <\/strong>For additional insights on the overflow-wrap property and to preview these choices, visit the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/overflow-wrap\" target=\"_blank\" id=\"\" rel=\"noopener\">MDN web docs<\/a>.<\/h6>\n<h3 id=\"\">How to configure wrapping behavior<\/h3>\n<p id=\"\">Before setting wrapping behavior, add a text element (e.g., rich text, paragraph, etc.) to the canvas.<\/p>\n<p id=\"\">To configure wrapping behavior:<\/p>\n<ol id=\"\">\n<li id=\"\">Select the text element on the canvas<\/li>\n<li id=\"\">Access the <strong id=\"\">Style panel<\/strong> &gt; <strong id=\"\">Typography<\/strong> &gt; <strong id=\"\">More type options<\/strong> &gt; <strong id=\"\">Wrap<\/strong><\/li>\n<li id=\"\">Select a wrapping option (e.g., Normal, Anywhere, or Break word)<\/li>\n<\/ol>\n<p id=\"\">Similar to other styling attributes, you can apply wrapping to a parent element or breakpoint, and modify it on child elements or different breakpoints.<\/p>\n<blockquote id=\"\"><p><strong id=\"\">Note:<\/strong> To prevent unexpected behavior on your published site, ensure any custom overflow-wrap CSS is removed.<\/p><\/blockquote>\n<h2 id=\"\">FAQ<\/h2>\n<h3 id=\"\">What is the distinction between word breaking and line breaking?<\/h3>\n<p id=\"\">Both word breaking and line breaking influence text display on the page. Line breaking dictates how whitespace characters are managed, and whether text overflows or wraps. Word breaking controls word fragmentation and wrapping within the text. Word breaks are particularly beneficial for URLs or languages with specific word segmentation rules (e.g., Chinese, Japanese, and Korean).<\/p>\n<h3 id=\"\">Why is &#8220;break-word&#8221; not available as a word breaking option?<\/h3>\n<p id=\"\">As per the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/word-break\" target=\"_blank\" rel=\"noopener\">CSS specification<\/a>, &#8220;word-break: break-word&#8221; is deprecated in favor of &#8220;overflow-wrap: break-word.&#8221; However, you can utilize &#8220;break-word&#8221; for wrapping purposes.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"Control text wrapping and line breaking to improve your design\u2019s responsiveness and readability.","protected":false},"author":2,"featured_media":5195,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[284],"tags":[],"class_list":{"0":"post-4368","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-layout-design","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/comments?post=4368"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/posts\/4368\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media\/5192"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/media?parent=4368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/categories?post=4368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/en\/wp-json\/wp\/v2\/tags?post=4368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}