{"id":1064,"date":"2014-10-03T12:49:06","date_gmt":"2014-10-03T10:49:06","guid":{"rendered":"http:\/\/www.speich.net\/articles\/?p=1064"},"modified":"2014-10-03T12:49:06","modified_gmt":"2014-10-03T10:49:06","slug":"css-quick-tip-line-breaks-in-flexbox-multi-line-mode","status":"publish","type":"post","link":"https:\/\/www.speich.net\/articles\/en\/2014\/10\/03\/css-quick-tip-line-breaks-in-flexbox-multi-line-mode\/","title":{"rendered":"CSS Quick Tip: Line Breaks in Flexbox Multi-line mode"},"content":{"rendered":"<p>Took my quite a while to find this, because it&#8217;s hardly mentioned anywhere except as a note on the <a title=\"Line breaks in flexbox multi-line\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Guide\/CSS\/Flexible_boxes?redirectlocale=en-US&amp;redirectslug=CSS%2FTutorials%2FUsing_CSS_flexible_boxes#Things_to_keep_in_mind\" target=\"_blank\">Mozilla Developer Network<\/a>:<\/p>\n<p>When you are using a <a title=\"Flex Line Wrapping\" href=\"http:\/\/dev.w3.org\/csswg\/css-flexbox\/#flex-wrap-property\" target=\"_blank\">flexbox layout in multi-line mode<\/a> (e.g. the &#8216;flex-wrap&#8217; property is set to wrap), you can force flex items to start on a new line by setting the &#8216;page-break-before&#8217; property.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Took my quite a while to find this, because it&#8217;s hardly mentioned anywhere except as a note on the Mozilla Developer Network: When you are using a flexbox layout in multi-line mode (e.g. the &#8216;flex-wrap&#8217; property is set to wrap), you can force flex items to start on a new line by setting the &#8216;page-break-before&#8217; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.speich.net\/articles\/en\/2014\/10\/03\/css-quick-tip-line-breaks-in-flexbox-multi-line-mode\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CSS Quick Tip: Line Breaks in Flexbox Multi-line mode&#8221;<\/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":[4],"tags":[20],"class_list":["post-1064","post","type-post","status-publish","format-standard","hentry","category-others","tag-css","entry"],"_links":{"self":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":0,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speich.net\/articles\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}