{"id":38030,"date":"2018-05-10T03:01:44","date_gmt":"2018-05-09T17:01:44","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=38030"},"modified":"2018-05-09T19:58:23","modified_gmt":"2018-05-09T09:58:23","slug":"word-wrap-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/word-wrap-primer-tutorial\/","title":{"rendered":"Word Wrap Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/word_wrap.html\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Word Wrap Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/word_wrap.jpg\" title=\"Word Wrap Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">Word Wrap Primer Tutorial<\/p><\/div>\n<p>On the recent series of Google Chart theme blog postings such as <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/google-line-area-bar-column-chart-multimedia-background-tutorial\/' title='Google Line Area Bar Column Chart Multimedia Background Tutorial'>Google Line Area Bar Column Chart Multimedia Background Tutorial<\/a>, recent and looking back, we&#8217;ve had quite a time of it with word wrapping issues.  So today we&#8217;re going to hone in on three categories of where word wrapping is an issue &#8230;<\/p>\n<ol>\n<li>within the contents of a <i>td<\/i> cell within an HTML <i>table<\/i> element<br \/>\n<code><br \/>\nwe got great advice from <a target=_blank title='Useful link' href='https:\/\/stackoverflow.com\/questions\/6666532\/how-to-force-table-cell-td-content-to-wrap'>this useful link<\/a> to know that the ...<br \/>\n<i>table<\/i> style=\"width:100%; <b>table-layout:fixed;<\/b>\" was a good idea and that ...<br \/>\n<i>td<\/i> style=\"<b>word-wrap:break-word;<\/b>\" was a good idea<br \/>\n<\/code>\n<\/li>\n<li>to do with an <i>a<\/i> link<br \/>\n<code><br \/>\n<i>a<\/i> style=\"<b>word-wrap:break-word;<\/b>\" is a good idea<br \/>\n<\/code>\n<\/li>\n<li>to do with the contents of an HTML iframe element<br \/>\n<code><br \/>\n<i>iframe<\/i> contents style can not readily be controlled at the parent but at the <i>body<\/i> element of what produces the iframe content ...<br \/>\n<i>body<\/i> style=\"<b>width:100%; word-wrap:break-word;<\/b>\" is a good idea ... looks better than before because <a target=_blank title='prediff.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php-----GETME'>prediff.php<\/a> changed in <a target=_blank title='prediff.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php-----GETME'>this way<\/a>.<br \/>\n<\/code>\n<\/li>\n<\/ol>\n<p>Try a new window <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/word_wrap.html\" title=\"word_wrap.html\">word_wrap.html<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/word_wrap.html\" title=\"Click picture\">live run<\/a> or see it below &#8230;<\/p>\n<p>We take that multimedia data from the Pie Chart case and use the wonderful data from the Australian Bureau of Meteorology (with webpages like <a target=_blank title='Sydney in winter 2016: A warm, wet winter for Sydney' href='http:\/\/www.bom.gov.au\/climate\/current\/season\/nsw\/archive\/201608.sydney.shtml'>Sydney in winter 2016: A warm, wet winter for Sydney<\/a>) to show in today&#8217;s Area Chart <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/AreaChart\/area_chart.php\" title=\"Tutorial picture\">tutorial picture<\/a> using the user prompt window entries &#8230;<\/p>\n<details open>\n<summary style=\"background-color:orange;\">Old Bad Word Wrapping in Table has no table style=&#8221;table-layout:fixed;&#8221; nor td style=&#8221;word-wrap:break-word;&#8221;<\/summary>\n<table style=\"width:100%;\" border=1>\n<tr>\n<td>https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/qrtr.aifc;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0018.MOV;The Seasons Explained Area Chart&#038;onclick=y&#038;emailto=rmetcalfe15@gmail.com&#038;emailsubject=The Seasons Explained via Area Chart<\/td>\n<\/tr>\n<tr>\n<td>Sydney Season by Year Hottest Days in C<\/td>\n<\/tr>\n<tr>\n<td>Summer,Autumn,Winter,Spring<\/td>\n<\/tr>\n<tr>\n<td>2013<\/td>\n<\/tr>\n<tr>\n<td>46.5,34.9,29.3,39.3<\/td>\n<\/tr>\n<tr>\n<td>2014<\/td>\n<\/tr>\n<tr>\n<td>41.9,31.6,25.8,45.3<\/td>\n<\/tr>\n<tr>\n<td>2015<\/td>\n<\/tr>\n<tr>\n<td>37.7,37.9,28.9,42.8<\/td>\n<\/tr>\n<tr>\n<td>2016<\/td>\n<\/tr>\n<tr>\n<td>42.2,36.6,27.0,37.4<\/td>\n<\/tr>\n<tr>\n<td>2017<\/td>\n<\/tr>\n<tr>\n<td>47.0,35.2,29.3,37.3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<\/details>\n<p> &#8230; vs &#8230;<\/p>\n<details>\n<summary style=\"background-color:lightgreen;\">New Good Word Wrapping in Table has table style=&#8221;table-layout:fixed;&#8221; and has td style=&#8221;word-wrap:break-word;&#8221;<\/summary>\n<table style=\"width:100%;table-layout:fixed;\" border=1>\n<tr>\n<td style=\"word-wrap:break-word;\">https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/qrtr.aifc;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0018.MOV;The Seasons Explained Area Chart&#038;onclick=y&#038;emailto=rmetcalfe15@gmail.com&#038;emailsubject=The Seasons Explained via Area Chart<\/td>\n<\/tr>\n<tr>\n<td>Sydney Season by Year Hottest Days in C<\/td>\n<\/tr>\n<tr>\n<td>Summer,Autumn,Winter,Spring<\/td>\n<\/tr>\n<tr>\n<td>2013<\/td>\n<\/tr>\n<tr>\n<td>46.5,34.9,29.3,39.3<\/td>\n<\/tr>\n<tr>\n<td>2014<\/td>\n<\/tr>\n<tr>\n<td>41.9,31.6,25.8,45.3<\/td>\n<\/tr>\n<tr>\n<td>2015<\/td>\n<\/tr>\n<tr>\n<td>37.7,37.9,28.9,42.8<\/td>\n<\/tr>\n<tr>\n<td>2016<\/td>\n<\/tr>\n<tr>\n<td>42.2,36.6,27.0,37.4<\/td>\n<\/tr>\n<tr>\n<td>2017<\/td>\n<\/tr>\n<tr>\n<td>47.0,35.2,29.3,37.3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<\/table>\n<p> &#8230; has the <b>changed<\/b> HTML &#8230;<\/p>\n<div contenteditable=true>\n&lt;table style=&#8221;width:100%;<b>table-layout:fixed;<\/b>&#8221; border=1&gt;<br \/>\n&lt;tr&gt;&lt;td<b> style=&#8221;word-wrap:break-word;&#8221;<\/b>&gt;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/qrtr.aifc;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0631.JPG;https:\/\/www.rjmprogramming.com.au\/PHP\/PieChart\/IMG_0018.MOV;The Seasons Explained Area Chart&#038;onclick=y&#038;emailto=rmetcalfe15@gmail.com&#038;emailsubject=The Seasons Explained via Area Chart&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;Sydney Season by Year Hottest Days in C&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;Summer,Autumn,Winter,Spring&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;2013&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;46.5,34.9,29.3,39.3&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;2014&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;41.9,31.6,25.8,45.3&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;2015&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;37.7,37.9,28.9,42.8&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;2016&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;42.2,36.6,27.0,37.4&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;2017&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;47.0,35.2,29.3,37.3&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;tr&gt;&lt;td&gt;&lt;\/td&gt;&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;\n<\/div>\n<\/details>\n<p> &#8230; to create a Google Chart Area Chart &#8220;Sydney Season by Year Hottest Days in C&#8221; for the years from 2013 to 2017.<\/p>\n<details open>\n<summary style=\"background-color:orange;\">Old bad Word Wrapping in a link has no a style=&#8221;word-wrap:break-word;&#8221;<\/summary>\n<p>You can see changes, today, via the report <a target=_blank href='HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09'>HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09&#8217;>HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09<\/a> below &#8230;<\/p>\n<\/details>\n<p> &#8230; vs &#8230;<\/p>\n<details>\n<summary style=\"background-color:lightgreen;\">New good Word Wrapping in a link has a style=&#8221;word-wrap:break-word;&#8221;<\/summary>\n<p>You can see changes, today, via the report <a style=\"word-wrap:break-word;\" target=_blank href='HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09'>HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09&#8217;>HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09<\/a> below &#8230;<\/p>\n<p> &#8230; has the <b>changed<\/b> HTML &#8230;<\/p>\n<div contenteditable=true>\n&lt;p&gt;You can see changes, today, via the report &lt;a<b> style=&#8221;word-wrap:break-word;&#8221;<\/b> target=_blank href=&#8217;HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09&#8242;&gt;HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09&#8242;&gt;HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09&lt;\/a&gt; below &#8230;&lt;\/p&gt;\n<\/div>\n<\/details>\n<p> &#8230; and the report below &#8230;<\/p>\n<p><iframe style='height:600px;width:100%;' src='HTTP:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php?dpath=HTTP:\/\/www.rjmprogramming.com.au\/&#038;dfilespec=PHP\/*\/*.*GETME&#038;dmdates=2018-05-08&#038;dmdateb=2018-05-09'><\/iframe><\/p>\n<p> &#8230; looks better than before because <a target=_blank title='prediff.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php-----GETME'>prediff.php<\/a> changed in <a target=_blank title='prediff.php' href='http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/prediff.php-----GETME'>this way<\/a>.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d38030' onclick='var dv=document.getElementById(\"d38030\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/word-wrap\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d38030' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>On the recent series of Google Chart theme blog postings such as Google Line Area Bar Column Chart Multimedia Background Tutorial, recent and looking back, we&#8217;ve had quite a time of it with word wrapping issues. So today we&#8217;re going &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/word-wrap-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[1580,281,576,587,1807,997,1209,1212,1238,1319,2544,2455],"class_list":["post-38030","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-cell","tag-css","tag-html","tag-iframe","tag-link","tag-programming","tag-style","tag-styling","tag-table","tag-tutorial","tag-word-wrap","tag-wrap"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/38030"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=38030"}],"version-history":[{"count":8,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/38030\/revisions"}],"predecessor-version":[{"id":38042,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/38030\/revisions\/38042"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=38030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=38030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=38030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}