{"id":295,"date":"2018-07-22T18:43:52","date_gmt":"2018-07-22T18:43:52","guid":{"rendered":"https:\/\/html5-chat.com\/blog\/?p=295"},"modified":"2018-07-22T18:43:52","modified_gmt":"2018-07-22T18:43:52","slug":"chat-html5-is-flex","status":"publish","type":"post","link":"https:\/\/html5-chat.com\/blog\/chat-html5-is-flex\/","title":{"rendered":"Chat HTML5 is FLEX"},"content":{"rendered":"<h3>Why using FLEX ?<\/h3>\n<p>We changed the CSS layout to <a href=\"https:\/\/www.w3schools.com\/css\/css3_flexbox.asp\">FLEX<\/a> instead of using old layout techniques like floating, margins, paddings.<\/p>\n<h4>Q) What does it change for me ?<\/h4>\n<p>A) Nothing.<\/p>\n<hr \/>\n<p><strong>Q) So what&#8217;s the point ?<\/strong><\/p>\n<p>A) Using <a href=\"https:\/\/www.w3schools.com\/css\/css3_flexbox.asp\">Flex layout<\/a> allows us to make the layout .. more flexible<\/p>\n<hr \/>\n<p><strong>Q) I still don&#8217;t understand what&#8217;s the point !<\/strong><\/p>\n<p>A) It will allow many different layout like for conferences, webinars.<br \/>\nEx: you want the user&#8217;s list to be on the LEFT side,\u00a0 Just add 1 line of CSS\u00a0 and that&#8217;s all<\/p>\n<pre class=\"prettyprint\">#chatContainer {\r\n   order:2\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>if you don&#8217;t know how to change the<a href=\"https:\/\/html5-chat.com\/blog\/css\/\"> CSS of your layout, please refer to that post<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why using FLEX ? We changed the CSS layout to FLEX instead of using old layout techniques like floating, margins, paddings. Q) What does it change for me ? A) Nothing. Q) So what&#8217;s the point ? A) Using Flex layout allows us to make the layout .. more flexible Q) I still don&#8217;t understand [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":298,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[49],"class_list":["post-295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-theme","tag-flex"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/comments?post=295"}],"version-history":[{"count":3,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/posts\/295\/revisions\/299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media\/298"}],"wp:attachment":[{"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/media?parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/categories?post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/html5-chat.com\/blog\/wp-json\/wp\/v2\/tags?post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}