{"id":71813,"date":"2026-01-26T03:01:00","date_gmt":"2026-01-25T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=71813"},"modified":"2026-01-26T20:39:30","modified_gmt":"2026-01-26T10:39:30","slug":"diagonal-element-nesting-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/diagonal-element-nesting-tutorial\/","title":{"rendered":"Diagonal Element Nesting Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/diagon_alley.html\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Diagonal Element Nesting Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/diagon_alley.jpg\" title=\"Diagonal Element Nesting Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Diagonal Element Nesting Tutorial<\/p><\/div>\n<p>A variation on yesterday&#8217;s <a title='Nesting Primer Tutorial' href='#npt'>Nesting Primer Tutorial<\/a>, as well as being inspired by that work is today&#8217;s &#8230;<\/p>\n<ol>\n<li>diagonal element &#8230; via &#8230;<\/li>\n<li>nested &#8230;\n<ul>\n<li>display: inline;<\/li>\n<li>display: inline-block;<\/li>\n<\/ul>\n<p> &#8230; <\/p>\n<ul>\n<li><a target=\"_blank\" title='sub element information from W3schools' href='https:\/\/www.w3schools.com\/tags\/tag_sub.asp' rel=\"noopener\"><i>sub<\/i><\/a> top<sup>left<\/sup> to bottom<sup>right<\/sup> diagonal componentry element look<\/li>\n<li><a target=\"_blank\" title='sup element information from W3schools' href='https:\/\/www.w3schools.com\/tags\/tag_sup.asp' rel=\"noopener\"><i>sup<\/i><\/a> bottom<sup>left<\/sup> to top<sup>right<\/sup> diagonal componentry element look<\/li>\n<\/ul>\n<p><font size=1> &#8230; we noticed working (ie. achieving nested &#8220;diagon<a target=\"_blank\" href='https:\/\/www.youtube.com\/watch?v=5W-a0tl9Fu0' rel=\"noopener\">al<\/a><sup>it<\/sup><a target=\"_blank\" href='https:\/\/www.youtube.com\/watch?v=5W-a0tl9Fu0' rel=\"noopener\">y<\/a>&#8220;)  yesterday<\/font>\n<\/li>\n<\/ol>\n<p> &#8230; functionality.  Yes, this might be thought of as &#8220;overkill&#8221; compared to &#8230;<\/p>\n<ul>\n<li><i>hr<\/i> element rotations &#8230; and\/or &#8230;<\/li>\n<li>SVG<\/li>\n<\/ul>\n<p> &#8230; arguably easier means to achieve a &#8220;diagonal element&#8221; look.  Nevertheless, the more ways to achieve an objective up your sleeve, the better, we reckon!<\/p>\n<p>Again, feel free to try out this <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/diagon_alley.html_GETME\" rel=\"noopener\">proof of concept<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/diagon_alley.html\" rel=\"noopener\">Nested Diagonal Elements<\/a> web application below &#8230;<\/p>\n<p><iframe src=\"\/\/www.rjmprogramming.com.au\/HTMLCSS\/diagon_alley.html\" style=\"zoom:0.48;width:100%;height:2100px;\"><\/iframe><\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/diagonal-element-nesting-tutorial\/' rel=\"noopener\">Diagonal Element Nesting Tutorial<\/a>.<\/p-->\n<hr>\n<p id='npt'>Previous relevant <a target=\"_blank\" title='Nesting Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/nesting-primer-tutorial\/' rel=\"noopener\">Nesting Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Nesting Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.gif\" title=\"Nesting Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Nesting Primer Tutorial<\/p><\/div>\n<p>The text (which can include emojis) &#8230;<\/p>\n<ul>\n<li>display: inline;<\/li>\n<li>display: inline-block;<\/li>\n<\/ul>\n<p> &#8230; HTML elements are endlessly fascinating in our eyes, regarding the &#8220;nesting&#8221; of elements.<\/p>\n<p>You can read all you like about this at a website like <a target=\"_blank\" title='W3schools' href='http:\/\/www.w3schools.com' rel=\"noopener\">W3schools<\/a> but we find endless surprises, so we decided to code for a web application with scope within a table cell &#8220;parent&#8221; element &#8230;<\/p>\n<ul>\n<li>reinitialize (ie. append) span or p or font or sup or sub or font or h1 or h2 or h3 or h4 or div element to the end of table cell content<\/li>\n<li>nest span or p or font or sup or sub or font or h1 or h2 or h3 or h4 or div element onto the end of the most outer table cell element&#8217;s content within the table cell content, or a clicked element flagged with a pink background<\/li>\n<\/ul>\n<p>We find it interesting changing up the choice above and font-size and new element content textbox settings and seeing what happens.  You see the resultant HTML innards below in a textarea element which changes to are reflected above <font size=1>(and in this way, you can pick an element type not listed above, if you like)<\/font>, as are changes to second and on table cell content&#8217;s on the top row.<\/p>\n<p>Feel free to try out this <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html_GETME\" rel=\"noopener\">proof of concept<\/a> <a target=\"_blank\" href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html\" rel=\"noopener\">Nesting<\/a> web application below &#8230;<\/p>\n<p><iframe src=\"\/\/www.rjmprogramming.com.au\/HTMLCSS\/nesting.html\" style=\"width:100%;height:1200px;\"><\/iframe><\/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='#d71803' onclick='var dv=document.getElementById(\"d71803\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/nest\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d71803' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\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='#d71813' onclick='var dv=document.getElementById(\"d71813\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/diagonal\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d71813' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A variation on yesterday&#8217;s Nesting Primer Tutorial, as well as being inspired by that work is today&#8217;s &#8230; diagonal element &#8230; via &#8230; nested &#8230; display: inline; display: inline-block; &#8230; sub topleft to bottomright diagonal componentry element look sup bottomleft &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/diagonal-element-nesting-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,14,37],"tags":[1580,5405,5406,341,576,2487,3580,1525,652,2521,1546,2621,997,1071,1072,1238,1581,1254,5404,1319],"class_list":["post-71813","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-cell","tag-diagonal","tag-diagonality","tag-display","tag-html","tag-inline","tag-inline-block","tag-innerhtml","tag-javascript","tag-nest","tag-nested","tag-nesting","tag-programming","tag-rotate","tag-rotation","tag-table","tag-table-cell","tag-text","tag-texxtarea","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71813"}],"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=71813"}],"version-history":[{"count":10,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71813\/revisions"}],"predecessor-version":[{"id":71826,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71813\/revisions\/71826"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=71813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=71813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=71813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}