{"id":2970,"date":"2020-07-21T14:36:56","date_gmt":"2020-07-21T05:36:56","guid":{"rendered":"https:\/\/fastcoding.jp\/blog\/?p=2970"},"modified":"2020-09-02T11:59:56","modified_gmt":"2020-09-02T02:59:56","slug":"css-flexbox1","status":"publish","type":"post","link":"https:\/\/fastcoding.jp\/blog\/all\/info\/css-flexbox1\/","title":{"rendered":"\u30102020\u5e74\u7248\u3011CSS Flexbox \u5b9f\u8df5\uff01\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308b"},"content":{"rendered":"<div class=\"the_content\"><p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/1-1.png\" alt=\"\u30102020\u5e74\u7248\u3011CSS Flexbox \u5b9f\u8df5\uff01\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u4f5c\u308b\" width=\"800\" height=\"460\" class=\"the_post_thumbnail aligncenter size-full wp-image-2980\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/1-1.png 800w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/1-1-352x202.png 352w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/1-1-300x173.png 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/1-1-768x442.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\u3002FASTCODING\u30c7\u30b6\u30a4\u30ca\u30fc\u306e\u4e03\u8ee2\u3073\u516b\u91cd\u5b50\u3067\u3059\u3002<br \/>\nCSS\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u6642\u3001\u4e00\u6614\u524d\u306ffloat\u306a\u3069\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u304c\u3001\u6700\u8fd1\u3067\u306f\u300cFlexbox\uff08\u30d5\u30ec\u30c3\u30af\u30b9\u30dc\u30c3\u30af\u30b9\uff09\u300d\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3059\u308b\u65b9\u6cd5\u304c\u3088\u304f\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/caniuse.com\/#search=flexbox\" rel=\"noopener noreferrer\" target=\"_blank\">Can I Use<\/a>\u306b\u3088\u308b\u30012020\u5e747\u6708\u73fe\u5728\u306eFlexbox\u306e\u30d6\u30e9\u30a6\u30b6\u5bfe\u5fdc\u72b6\u6cc1\u306f\u3001\u57fa\u672c\u7684\u306b\u3069\u306e\u30d6\u30e9\u30a6\u30b6\u3082\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306fFlexbox\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u304c\u3001IE\u306b\u306f\u82e5\u5e72\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p class=\"text_box_blue\"><span class=\"text_box_title\">Internet Explorer\u306e\u5bfe\u5fdc\u72b6\u6cc1<\/span><br \/>\n\u6700\u65b0\u306eIE 11\u3067\u3001\u3044\u304f\u3064\u304b\u30d0\u30b0\u304c\u5831\u544a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Flexbox\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306fIE\u3067\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3063\u305f\u65b9\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002\u3044\u3064\u307e\u3067\u3082\u554f\u984c\u306e\u5c3d\u304d\u306a\u3044\u30d6\u30e9\u30a6\u30b6\u3067\u3059\u306d\u3002\u3002\u3002\n<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001<a href=\"https:\/\/gs.statcounter.com\/browser-market-share\/all\/japan\" rel=\"noopener noreferrer\" target=\"_blank\">Statcounter global stats<\/a>\u30672009\u5e74\u6642\u70b9\u3067\u306e\u3001\u65e5\u672c\u306e\u30d6\u30e9\u30a6\u30b6\u30fc\u30b7\u30a7\u30a2\u3067\u306f1\u4f4d\u304cIE11\u306766.85%\u3092\u5360\u3081\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u306e11\u5e74\u3067\u3001Chrome\u304c48.66%\u3001IE\u306f\u306a\u3093\u30685.37%\u307e\u3067\u843d\u3061\u3066\u3044\u307e\u3059\u3002\u4e16\u754c\u7684\u306b\u307f\u308b\u3068\u3001Chrome\u306f65.47%\u306e\u30b7\u30a7\u30a2\u3092\u7372\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div id=\"all-browser-JP-monthly-200901-202006\" width=\"750\" height=\"400\" style=\"width:600px; height: 400px;\"><\/div>\n<p><!-- You may change the values of width and height above to resize the chart --><\/p>\n<p>Source: <a href=\"https:\/\/gs.statcounter.com\/browser-market-share\/all\/japan\/#monthly-200901-202006\">StatCounter Global Stats &#8211; Browser Market Share<\/a><\/p>\n<p><script type=\"text\/javascript\" src=\"https:\/\/www.statcounter.com\/js\/fusioncharts.js\"><\/script><script type=\"text\/javascript\" src=\"https:\/\/gs.statcounter.com\/chart.php?all-browser-JP-monthly-200901-202006&#038;chartWidth=600\"><\/script><\/p>\n<p class=\"text_box_yellow\"><span class=\"text_box_title\">\u76ee\u6b21<\/span><br \/>\n<a href=\"#no1\">CSS Flexbox\u3068\u306f\uff1f<\/a><br \/>\n<a href=\"#no2\">CSS Flexbox\u3067\u30c7\u30e2\u30b5\u30a4\u30c8\u306e\u30ec\u30a6\u30a2\u30a6\u30c8\u4f5c\u6210\uff01<\/a><br \/>\n<a href=\"#no2-1\">\u3000\u3000\uff11. \u30d9\u30fc\u30b9\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b<\/a><br \/>\n<a href=\"#no2-2\">\u3000\u3000\uff12. \u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u6a2a\u4e26\u3073\u306b\u3059\u308b<\/a><br \/>\n<a href=\"#no2-3\">\u3000\u3000\uff13. \uff13\u3064\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b<\/a><br \/>\n<a href=\"#no2-4\">\u3000\u3000\uff14. \u6a2a\u5e45\u306e\u6bd4\u7387\u3092\u5909\u66f4\u3059\u308b<\/a><br \/>\n<a href=\"#no2-5\">\u3000\u3000\uff15. \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u306b\u3059\u308b<\/a><br \/>\n<a href=\"#no3\">\u307e\u3068\u3081<\/a><\/p>\n<p><br id=\"no1\" \/>\u3000\u3000<\/p>\n<h2>CSS Flexbox\u3068\u306f\uff1f<\/h2>\n<p>CSS Flexbox\u306e\u6b63\u5f0f\u540d\u79f0\u306f\u300cFlexible Box Layout Module\u300d\u3002\u305d\u306e\u540d\u306e\u901a\u308a\u3001\u300c\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u3067\u7c21\u5358\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u7d44\u3081\u308b\u300d\u3068\u8a00\u3046\u3082\u306e\u3002CSS\u306b\u305f\u3063\u305f\u4e00\u884c\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u3001\u6a2a\u4e26\u3073\u306b\u306a\u308a\u3001\u4f59\u767d\u307e\u3067\u8abf\u6574\u3057\u3066\u304f\u308c\u307e\u3059\u3002CSS3\u304b\u3089\u5b9f\u88c5\u3055\u308c\u3001\u7d50\u69cb\u524d\u304b\u3089\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u8fd1\u5e74\u3001\u3088\u3046\u3084\u304f\u30e2\u30c0\u30f3\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u5229\u7528\u306b\u96e3\u304c\u306a\u304f\u306a\u308a\u3001\u5b9f\u7528\u7684\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u4f5c\u6210\u65b9\u6cd5\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p class=\"text_box_blue\"><span class=\"text_box_title\">CSS Flexbox\u306e\u57fa\u672c\u306f\u3001<\/span><br \/>\n\u30fb\u30b3\u30f3\u30c6\u30ca\uff08\u89aa\u8981\u7d20\uff09<br \/>\n\u30fb\u30a2\u30a4\u30c6\u30e0\uff08\u5b50\u8981\u7d20\uff09<br \/>\n\u3068\u3044\u30462\u3064\u306e\u8981\u7d20\u306b\u3088\u3063\u3066\u69cb\u6210\u3055\u308c\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\uff08\u89aa\u8981\u7d20\uff09\u306e\u4e2d\u306b\u3001\u30a2\u30a4\u30c6\u30e0\uff08\u5b50\u8981\u7d20\uff09\u3092\u5165\u308c\u3066HTML\u306f\u5b8c\u4e86\u3067\u3059\u3002\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/2-1.png\" alt=\"\" width=\"800\" height=\"242\" class=\"aligncenter size-full wp-image-2978\" \/><br \/>\n\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u3084\u30a2\u30a4\u30c6\u30e0\u306b\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u8abf\u6574\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u305d\u308c\u3067\u306f\u3001\u5b9f\u969b\u306b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3093\u3067\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><br id=\"no2\" \/><\/p>\n<h2>CSS Flexbox\u3067\u30c7\u30e2\u30b5\u30a4\u30c8\u306e\u30ec\u30a6\u30a2\u30a6\u30c8\u4f5c\u6210\uff01<\/h2>\n<p>\u5b8c\u6210\u4e88\u60f3\u56f3<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/3-1.png\" alt=\"\" width=\"800\" height=\"423\" class=\"aligncenter size-full wp-image-2995\" srcset=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/3-1.png 800w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/3-1-300x159.png 300w, https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/3-1-768x406.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><br id=\"no2-1\" \/><\/p>\n<h3>\uff11. \u30d9\u30fc\u30b9\u306e\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b<\/h3>\n<p><strong>HTML<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;nav&gt;\r\n  &lt;ul class=&quot;G-nav&quot;&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 1&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 2&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 3&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 4&lt;\/a&gt;&lt;\/li&gt;\r\n    &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Item 5&lt;\/a&gt;&lt;\/li&gt;\r\n  &lt;\/ul&gt;\r\n&lt;\/nav&gt;\r\n<\/pre>\n<p><strong>CSS<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.G-nav a {\r\n  margin: 8px;\r\n  border-radius: 3px;\r\n  background: #DF6A6A;\r\n  color: #fff;\r\n  display: block;\r\n  padding: 10px 15px;\r\n  text-decoration: none;\r\n}\r\n.G-nav li {\r\n  list-style: none;\r\n}\r\nbody {background: #E6E6E6;}\r\n<\/pre>\n<p><iframe height=\"265\" style=\"width: 100%;\" scrolling=\"no\" title=\"KKVbrPW\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/KKVbrPW?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/KKVbrPW'>KKVbrPW<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<p><br id=\"no2-2\" \/><\/p>\n<h3>\uff12. \u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u6a2a\u4e26\u3073\u306b\u3059\u308b<\/h3>\n<p>\u30e1\u30cb\u30e5\u30fc\u30a2\u30a4\u30c6\u30e0\u306e\u89aa\u8981\u7d20\u3067\u3042\u308b<span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\"> .G-nav \u306b display: flex; <\/span>\u3092\u52a0\u3048\u308b\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.G-nav {\r\n  display: flex;\r\n}\r\n<\/pre>\n<p><iframe height=\"200\" style=\"width: 100%;\" scrolling=\"no\" title=\"parts2\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/vYLvQVL?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/vYLvQVL'>parts2<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<h4>\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3092\u4e2d\u592e\u306b\u8868\u793a\u306b\u3059\u308b<\/h4>\n<p><span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\">justify-content \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u3067\u3001\u8981\u7d20\u3068\u8981\u7d20\u306e\u9593\u3084\u3001\u8868\u793a\u4f4d\u7f6e\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/span>\u3067\u304d\u307e\u3059\u3002\u5024\u3092<span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\"> center \u306b\u3059\u308b\u3068\u3001\u8981\u7d20\u304c\u30bb\u30f3\u30bf\u30fc\u8868\u793a<\/span>\u306b\u4e26\u3073\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.G-nav {\r\n  display: flex;\r\n  justify-content: center;\r\n}\r\n<\/pre>\n<p><iframe height=\"200\" style=\"width: 100%;\" scrolling=\"no\" title=\"parts3\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/oNbJQVX?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/oNbJQVX'>parts3<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<p><br id=\"no2-3\" \/><\/p>\n<h3>\uff13. \uff13\u3064\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<p>\u7d9a\u3044\u3066\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u30e1\u30cb\u30e5\u30fc\u306b\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u3057\u30663\u3064\u306e section \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n<strong>HMTL<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;div class=&quot;main&quot;&gt;\r\n  &lt;section class=&quot;col-1&quot;&gt;\r\n    &lt;h1&gt;Column 1&lt;\/h1&gt;\r\n    &lt;p&gt;Lorem ipsum dolor sit amet,...&lt;\/p&gt;\r\n  &lt;\/section&gt;\r\n  &lt;section class=&quot;col-2&quot;&gt;\r\n    &lt;h1&gt;Column 2&lt;\/h1&gt;\r\n    &lt;p&gt;Lorem ipsum dolor sit amet, ...&lt;\/p&gt;\r\n    &lt;p&gt;Integer vel pellentesque elit...&lt;\/p&gt;\r\n  &lt;\/section&gt;\r\n  &lt;section class=&quot;col-3&quot;&gt;\r\n    &lt;h1&gt;Column 3&lt;\/h1&gt;\r\n    &lt;p&gt;Lorem ipsum dolor sit amet, ...&lt;\/p&gt;\r\n  &lt;\/section&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p><strong>CSS<\/strong><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.main section {\r\n  margin: 10px;\r\n  border-radius: 3px;\r\n  background: #fff;\r\n  padding: 15px;\r\n}\r\n.main h1 {\r\n  color: #4A4A4A;\r\n  font-size: 1.2rem;\r\n}\r\n.main p {\r\n  margin-top: 10px;\r\n}\r\n<\/pre>\n<p><iframe height=\"265\" style=\"width: 100%;\" scrolling=\"no\" title=\"parts4\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/yLeGGeG?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/yLeGGeG'>parts4<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<h4>3\u3064\u306e\u30ab\u30e9\u30e0\u3082\u6a2a\u4e26\u3073\u306b\u3059\u308b<\/h4>\n<p>\u7d9a\u3044\u3066\u3001\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u90e8\u5206\u3082\u6a2a\u4e26\u3073\u306b\u3059\u308b\u306e\u3067 <span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\">.main \u30af\u30e9\u30b9\u306b display: flex; <\/span>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.main {\r\n  display: flex;\r\n}\r\n<\/pre>\n<p><iframe height=\"265\" style=\"width: 100%;\" scrolling=\"no\" title=\"parts5\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/ZEQwpWw?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/ZEQwpWw'>parts5<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<p><span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\">Flexbox\u306f\u3001\u7570\u306a\u308b\u9ad8\u3055\u306e\u30dc\u30c3\u30af\u30b9\u3092\u3001\u3053\u306e\u3088\u3046\u306b\u81ea\u52d5\u7684\u306b\u4e00\u756a\u9577\u3044\u30dc\u30c3\u30af\u30b9\u306b\u5408\u308f\u305b\u3066\u9ad8\u3055\u3092\u8abf\u6574\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/span>\u3053\u3053\u304c\u4fbf\u5229\u3067\u3059\u306d\u3002\u30dc\u30c3\u30af\u30b9\u306e\u5e45\u304c\u30d0\u30e9\u30d0\u30e9\u306a\u306e\u3067<\/p>\n<p><br id=\"no2-4\" \/><\/p>\n<h3>\uff14. \u6a2a\u5e45\u306e\u6bd4\u7387\u3092\u5909\u66f4\u3059\u308b<\/h3>\n<p>\u30dc\u30c3\u30af\u30b9\u306e\u5e45\u304c\u30d0\u30e9\u30d0\u30e9\u306a\u306e\u3067\u3001<span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\">flex \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc<\/span>\u3092\u4f7f\u3063\u3066\u6a2a\u5e45\u3092\u8abf\u6574\u3057\u307e\u3059\u3002flex \u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u306f flex-grow\u3001flex-shrink\u3001flex-basis \u3068\u3044\u30463\u3064\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u306e\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3067\u3059\u3002\u500b\u5225\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3082\u3001\u7701\u7565\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>\u7b49\u9593\u9694\u306b\u3057\u3066\u307f\u308b<\/h4>\n<p>flex-grow\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3067 flex: 1; \u3068\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.main section {\r\n  flex: 1;\r\n}\r\n<\/pre>\n<p>IE11\u306b\u306f\u30b7\u30e7\u30fc\u30c8\u30cf\u30f3\u30c9\u3067\u306f\u306a\u304f flex-grow: 1; \u3068\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><iframe height=\"265\" style=\"width: 100%;\" scrolling=\"no\" title=\"parts6\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/JjGxRWd?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/JjGxRWd'>parts6<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<h4>\u771f\u3093\u4e2d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u307f\u500d\u306e\u5e45\u306b\u3057\u3066\u307f\u308b<\/h4>\n<p>\u7b49\u9593\u9694\u3060\u3068\u3001\u771f\u3093\u4e2d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3060\u3051\u6587\u5b57\u304c\u9577\u3044\u306e\u3067\u30d0\u30e9\u30f3\u30b9\u304c\u60aa\u3044\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u771f\u3093\u4e2d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3060\u3051\u5e45\u3092\uff12\u500d\u306b\u3057\u3066\u3001\u30d0\u30e9\u30f3\u30b9\u3092\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n.main .col-2 {\r\n  flex: 2;\r\n}\r\n<\/pre>\n<p><iframe height=\"265\" style=\"width: 100%;\" scrolling=\"no\" title=\"parts7\" src=\"https:\/\/codepen.io\/fikgpnyd\/embed\/ZEQwpyZ?height=265&#038;theme-id=dark&#038;default-tab=result\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"true\"><br \/>\n  See the Pen <a href='https:\/\/codepen.io\/fikgpnyd\/pen\/ZEQwpyZ'>parts7<\/a> by \u91ce\u7530 \u82f1\u91cc<br \/>\n  (<a href='https:\/\/codepen.io\/fikgpnyd'>@fikgpnyd<\/a>) on <a href='https:\/\/codepen.io'>CodePen<\/a>.<br \/>\n<\/iframe><\/p>\n<p><br id=\"no2-5\" \/><\/p>\n<h3>\uff15. \u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u5bfe\u5fdc\u306b\u3059\u308b<\/h3>\n<p>\u6700\u5f8c\u306b\u3001\u30e2\u30d0\u30a4\u30eb\u3067\u306e\u95b2\u89a7\u3092\u8003\u616e\u3057\u3001\u30e1\u30c7\u30a3\u30a2\u30af\u30a8\u30ea\u30fc\u3092\u4f7f\u3063\u3066\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30ec\u30a4\u30a2\u30a6\u30c8\u306b\u5bfe\u5fdc\u3055\u305b\u307e\u3059\u3002<\/p>\n<p><span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\">\u8981\u7d20\u306e\u914d\u7f6e\u65b9\u5411\u3092\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc flex-direction <\/span>\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f row \u3067\u3001\u5de6\u304b\u3089\u53f3\u306e\u6a2a\u4e26\u3073\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f<span  style=\"font-weight:bold;font-size:16px;background-color: #ffff00;padding:5px 0;\"> column \u3092\u4f7f\u3063\u3066\u6a2a\u5e45\u304c800px\u4ee5\u4e0b\u306b\u306a\u3063\u305f\u3089\u6a2a\u4e26\u3073\u304b\u3089\u7e26\u4e26\u3073\u306b\u5909\u66f4\u3059\u308b\u6307\u5b9a<\/span>\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n@media screen and (max-width: 700px) {\r\n  .main {\r\n    flex-direction: column;\r\n  }\r\n}\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/4.gif\" alt=\"\" width=\"800\" height=\"450\" class=\"aligncenter size-full wp-image-3005\" \/><\/p>\n<p>\u3053\u308c\u3067\u5b8c\u6210\u3067\u3059\u3002<\/p>\n<p><\/br id=\"no3\"><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u3001\u300cFlexbox\uff08\u30d5\u30ec\u30c3\u30af\u30b9\u30dc\u30c3\u30af\u30b9\uff09\u300d\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u5b9f\u8df5\u3057\u3066\u307f\u307e\u3057\u305f\u30022020\u5e74\u306b\u5165\u3063\u3066\u3001\u30e2\u30c0\u30f3\u30d6\u30e9\u30a6\u30b6\u306e\u5bfe\u5fdc\u72b6\u6cc1\u3082\u6539\u5584\u3055\u308c\u305f\u306e\u3067\u3001\u66f4\u306b\u4fbf\u5229\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3002<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3002FASTCODING\u30c7\u30b6\u30a4\u30ca\u30fc\u306e\u4e03\u8ee2\u3073\u516b\u91cd\u5b50\u3067\u3059\u3002 CSS\u3067\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u6642\u3001\u4e00\u6614\u524d\u306ffloat\u306a\u3069\u3092\u4f7f\u3063\u3066\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u7d44\u3080\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3057\u305f\u304c\u3001\u6700\u8fd1\u3067\u306f\u300cFlexbox\uff08\u30d5\u30ec\u30c3\u30af\u30b9\u30dc\u30c3\u30af\u30b9\uff09\u300d\u3092\u4f7f\u3063\u3066\u30ec\u30a4 [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":2980,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[13,12,5,11],"tags":[31,16],"class_list":["post-2970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-frontend","category-webdesign","category-info","category-other","tag-web","tag-16"],"acf":[],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/fastcoding.jp\/blog\/wp-content\/uploads\/2020\/07\/1-1.png","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/2970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/comments?post=2970"}],"version-history":[{"count":30,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/2970\/revisions"}],"predecessor-version":[{"id":3048,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/posts\/2970\/revisions\/3048"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media\/2980"}],"wp:attachment":[{"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/media?parent=2970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/categories?post=2970"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fastcoding.jp\/blog\/wp-json\/wp\/v2\/tags?post=2970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}