{"id":2429,"date":"2016-04-27T18:04:43","date_gmt":"2016-04-28T01:04:43","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=2429"},"modified":"2016-04-27T18:04:43","modified_gmt":"2016-04-28T01:04:43","slug":"breaking-urls-and-long-text","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=2429","title":{"rendered":"Breaking URLs and Long Text"},"content":{"rendered":"<p>When porting a website so that it displays well on phones, I ran across a problem wrapping long text without breaks. This text doesn\u2019t wrap so the whole page gets a horizontal scroll.<br \/>\n<pre><code class=\"preserve-code-formatting\">\n&lt;p class=&#039;break-word&#039;&gt;On my Windows 7 and 8 computer, with a login name of llsc the location that shows up in the top bar is:\nUsers\\llsc\\AppData\\Roaming\\LocuTourMultimedia\\Client Manager\\Data\n&lt;\/p&gt;<\/code><\/pre><\/p>\n<p> I added a break-word class to my CSS and it works fine.<br \/>\n<pre><code class=\"preserve-code-formatting\">\n.break-word {\n&nbsp;&nbsp;&nbsp;&nbsp;word-wrap:break-word;\n&nbsp;&nbsp;&nbsp;&nbsp;overflow-wrap: break-word;\n&nbsp;&nbsp;&nbsp;&nbsp;word-break: break-word;\n}<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When porting a website so that it displays well on phones, I ran across a problem wrapping long text without breaks. This text doesn\u2019t wrap so the whole page gets a horizontal scroll. &lt;p class=&#039;break-word&#039;&gt;On my Windows 7 and 8 computer, with a login name of llsc the location that shows up in the top &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=2429\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Breaking URLs and Long Text<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-2429","post","type-post","status-publish","format-standard","hentry","category-html-and-css"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2429"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2429\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}