{"id":556,"date":"2018-02-28T13:08:58","date_gmt":"2018-02-28T19:08:58","guid":{"rendered":"https:\/\/marcblase.com\/blog\/?p=556"},"modified":"2018-02-28T13:15:05","modified_gmt":"2018-02-28T19:15:05","slug":"force-word-wrap-on-long-strings","status":"publish","type":"post","link":"https:\/\/ma.rcbla.se\/blog\/2018\/02\/force-word-wrap-on-long-strings\/","title":{"rendered":"Force word wrap on long strings"},"content":{"rendered":"<p>Sometimes web content requires having a long URL which can extend or break the container which encloses it. <a href=\"https:\/\/css-tricks.com\/snippets\/css\/prevent-long-urls-from-breaking-out-of-container\/\">Chris Coyier<\/a> saves the day again. Thanks!<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n.dont-break-out {\r\n\r\n  \/* These are technically the same, but use both *\/\r\n  overflow-wrap: break-word;\r\n  word-wrap: break-word;\r\n\r\n  -ms-word-break: break-all;\r\n  \/* This is the dangerous one in WebKit, as it breaks things wherever *\/\r\n  word-break: break-all;\r\n  \/* Instead use this non-standard one: *\/\r\n  word-break: break-word;\r\n\r\n  \/* Adds a hyphen where the word breaks, if supported (No Blink) *\/\r\n  -ms-hyphens: auto;\r\n  -moz-hyphens: auto;\r\n  -webkit-hyphens: auto;\r\n  hyphens: auto;\r\n\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes web content requires having a long URL which can extend or break the container which encloses it. Chris Coyier saves the day again. Thanks! .dont-break-out { \/* These are technically the same, but use both *\/ overflow-wrap: break-word; word-wrap: break-word; -ms-word-break: break-all; \/* This is the dangerous one in WebKit, as it breaks things [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,12,3],"tags":[],"class_list":["post-556","post","type-post","status-publish","format-standard","hentry","category-coding","category-css-coding","category-discoveries"],"_links":{"self":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts\/556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/comments?post=556"}],"version-history":[{"count":1,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts\/556\/revisions"}],"predecessor-version":[{"id":557,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts\/556\/revisions\/557"}],"wp:attachment":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/media?parent=556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/categories?post=556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/tags?post=556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}