{"id":54322,"date":"2021-12-18T03:01:53","date_gmt":"2021-12-17T17:01:53","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=54322"},"modified":"2021-12-21T11:18:32","modified_gmt":"2021-12-21T01:18:32","slug":"flex-box-css-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/flex-box-css-primer-tutorial\/","title":{"rendered":"Flex Box CSS Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/flex_box.html\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Flex Box CSS Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/flex_box.jpg\" title=\"Flex Box CSS Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Flex Box CSS Primer Tutorial<\/p><\/div>\n<p>To use percentage (%) units in CSS in a web application can be a conduit towards <a target=_blank title='Responsive Web Design information from Wikipedia ... thanks' href='https:\/\/en.wikipedia.org\/wiki\/Responsive_web_design'>Responsive Web Design<\/a> goals you have.  But have you considered the <a target=_blank title='Flex Box' href='https:\/\/www.tutorialrepublic.com\/css-tutorial\/css3-flexible-box-layouts.php'>&#8220;Flex Box&#8221;<\/a> as another approach?<\/p>\n<blockquote cite='https:\/\/www.tutorialrepublic.com\/css-tutorial\/css3-flexible-box-layouts.php'><p>\nCSS3 flexible Box, or flexbox is a new layout model for creating the more flexible user interface design.\n<\/p><\/blockquote>\n<blockquote cite='https:\/\/www.tutorialrepublic.com\/css-tutorial\/css3-flexible-box-layouts.php'><p>\nFlexible box, commonly referred to as flexbox, is a new layout model introduced in CSS3 for creating the flexible user interface design with multiple rows and columns without using the percentage or fixed length values. The CSS3 flex layout model provides a simple and powerful mechanism for handling the distributing of space and alignment of content automatically through stylesheet without interfering the actual markup.\n<\/p><\/blockquote>\n<p>And so we thank <a target=_blank title='Flex Box' href='https:\/\/www.tutorialrepublic.com\/css-tutorial\/css3-flexible-box-layouts.php'>CSS3 Flexible Box Layouts &#8211; Tutorial Republic<\/a> sincerely for the great basis for a proof of concept <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/flex_box.html_GETME\">flex_box.html<\/a>&#8216;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/flex_box.html\" title=\"Click picture\">live run<\/a> link for you to try.  You&#8217;ll see there, that just about the first thing we are interested in here, is to combine &#8220;Flex Box&#8221; ideas with HTML table element content, to experiment with the &#8220;cheese and the chalk&#8221; of Responsive Web Design.<\/p>\n<p>You&#8217;ll also see that this topic got us trying what we were not surprised was not supported, but somehow felt allowable to us for a ten minute period trying <font size=1>(the <b>non-<\/b>working)<\/font> <i>contenteditable: true;<\/i> idea.  But then the <a target=_blank title='Why is contenteditable not a style?' href='https:\/\/stackoverflow.com\/questions\/10243123\/why-is-contenteditable-not-a-style'>excellent helping link &#8220;Why is contenteditable not a style?&#8221;<\/a> (via <a target=_blank title='Google search' href='https:\/\/www.google.com\/search?q=css+contenteditable&#038;rlz=1C5CHFA_enAU973AU973&#038;oq=css+contenteditable&#038;aqs=chrome..69i57j0i512l5j0i22i30l4.4782j0j4&#038;sourceid=chrome&#038;ie=UTF-8'>Google search<\/a>) taught us that <font color=blue>the CSS<\/font> &#8230;<\/p>\n<p>&lt;style&gt;<br \/>\n<code><br \/>\n    <font color=blue>.flex-container div table tr th {<\/font><br \/>\n        \/* contenteditable: true; *\/<br \/>\n        <font color=blue>-webkit-user-modify: read-write;<br \/>\n        -moz-user-modify: read-write;<br \/>\n        user-modify: read-write;<br \/>\n    }<\/font><br \/>\n<\/code><br \/>\n&lt;\/style&gt;<\/p>\n<p> &#8230; could be a substitute for the HTML attribute <i>contenteditable=true<\/i> we were after, but do not want to use at this &#8220;proof of concept&#8221; <a target=_blank href='https:\/\/www.rjmprogramming.com.au\/ITblog\/?s=missing%20Javascript'>&#8220;no Javascript&#8221;<\/a> start to our &#8220;Flex Box&#8221; (via CSS) project. Feel free to try out a &#8220;Flex Box&#8221; below &#8230;<\/p>\n<p><iframe style='width:100%;height:600px;' src='http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/flex_box.html'><\/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='#d54322' onclick='var dv=document.getElementById(\"d54322\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/flex\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d54322' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>To use percentage (%) units in CSS in a web application can be a conduit towards Responsive Web Design goals you have. But have you considered the &#8220;Flex Box&#8221; as another approach? CSS3 flexible Box, or flexbox is a new &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/flex-box-css-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":[281,342,3033,3878,2255,997,1986,2644,1991,1209,1212,1238,1319],"class_list":["post-54322","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-css","tag-div","tag-flex","tag-flex-box","tag-percentage","tag-programming","tag-proof-of-concept","tag-responsive","tag-responsive-design","tag-style","tag-styling","tag-table","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54322"}],"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=54322"}],"version-history":[{"count":7,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54322\/revisions"}],"predecessor-version":[{"id":54373,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/54322\/revisions\/54373"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=54322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=54322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=54322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}