{"id":208972,"date":"2017-10-19T09:46:31","date_gmt":"2017-10-19T09:46:31","guid":{"rendered":"http:\/\/portfolio.webbook.website\/?p=208972"},"modified":"2021-02-04T17:21:52","modified_gmt":"2021-02-04T17:21:52","slug":"what-is-flex-box","status":"publish","type":"post","link":"https:\/\/themes.divizoom.com\/portfolio\/what-is-flex-box\/","title":{"rendered":"What is Flex Box"},"content":{"rendered":"\n[et_pb_section bb_built=&#8221;1&#8243; _builder_version=&#8221;3.0.47&#8243;][et_pb_row make_equal=&#8221;on&#8221; _builder_version=&#8221;3.0.82&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221;][et_pb_column type=&#8221;1_2&#8243;][et_pb_text _builder_version=&#8221;3.0.82&#8243; text_font=&#8221;Raleway||||&#8221; text_text_color=&#8221;#3d3d3d&#8221; header_font=&#8221;Montserrat||||&#8221; header_text_color=&#8221;#333333&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; text_orientation=&#8221;justified&#8221; module_alignment=&#8221;justified&#8221;]\n\n<p>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.<\/p>\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada.<\/p>\n<p>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.<\/p>\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada.<\/p>\n\n[\/et_pb_text][et_pb_image src=&#8221;https:\/\/portfolio.webbook.website\/wp-content\/uploads\/2017\/10\/melinda-pack-233281.jpg&#8221; _builder_version=&#8221;3.0.82&#8243; \/][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243;][et_pb_image src=&#8221;https:\/\/portfolio.webbook.website\/wp-content\/uploads\/2017\/10\/teresa-kluge-250309.jpg&#8221; _builder_version=&#8221;3.0.82&#8243; \/][et_pb_text _builder_version=&#8221;3.0.82&#8243; text_font=&#8221;Raleway||||&#8221; text_text_color=&#8221;#3d3d3d&#8221; header_font=&#8221;Montserrat||||&#8221; header_text_color=&#8221;#333333&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; text_orientation=&#8221;justified&#8221; module_alignment=&#8221;justified&#8221;]\n\n<p>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.<\/p>\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada.<\/p>\n<p>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.<\/p>\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada.<\/p>\n\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;3.0.47&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; _i=&#8221;1&#8243; _address=&#8221;0.1&#8243;][et_pb_column type=&#8221;4_4&#8243;][et_pb_image src=&#8221;https:\/\/portfolio.webbook.website\/wp-content\/uploads\/2017\/10\/stefan-stefancik-297983.jpg&#8221; _builder_version=&#8221;3.0.82&#8243; \/][et_pb_text _builder_version=&#8221;3.0.82&#8243;]\n\n<p>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.<br \/>\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada.<br \/>\nVivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui.<br \/>\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada.<\/p>\n\n[\/et_pb_text][et_pb_video src=&#8221;https:\/\/vimeo.com\/229537127&#8243; image_src=&#8221;\/\/i.vimeocdn.com\/video\/649871889_960.jpg&#8221; _builder_version=&#8221;3.0.82&#8243; \/][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>Vivamus magna justo, lacinia eget consectetur sed, convallis at tellus. Quisque velit nisi, pretium ut lacinia in, elementum id enim. Vestibulum ac diam sit amet quam vehicula elementum sed sit amet dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras ultricies ligula sed magna dictum porta. Donec sollicitudin molestie malesuada. Vivamus magna justo, lacinia [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":210580,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"Flexbox is a new CSS layout mode that introduces a powerful way to lay out, align and distribute objects. Flexbox consists of flex containers and flex items.\n\n<strong>Flex Direction<\/strong>\nThe flex-direction property specifies the direction of the flexible items inside the flex container.\n<strong>\nrow;\u00a0<\/strong>The default value of flex-direction is row (left-to-right, top-to-bottom).\n<strong>row-reverse;\u00a0<\/strong>The flex items will be laid out right to left.\n<strong>column;\u00a0<\/strong>The flex items will be laid out vertically.\n<strong>column-reverse;\u00a0<\/strong>Same as column, but reversed.\n\n<strong>Flex wrap<\/strong><strong>\n<\/strong>The flex-wrap property specifies whether the flex items should wrap or not, if there is not enough room for them on one flex line.\n<strong>\nnowrap;\u00a0<\/strong>The flexible items will not wrap.\n<strong>wrap;\u00a0<\/strong>The flexible items will wrap if necessary.\n\n<strong>Justify content\n<\/strong>The justify-content property horizontally aligns the flexible container's items when the items do not use all available space on the main-axis.\n\nf<strong>lex-start;\u00a0<\/strong>Items are positioned at the beginning of the container.\n<strong>flex-end;\u00a0<\/strong>Items are positioned at the end of the container.\n<strong>center\u00a0<\/strong>Items are positioned at the center of the container.\n<strong>space-between;\u00a0<\/strong>Items are positioned with space between the lines.\n<strong>space-around;\u00a0<\/strong>Items are positioned with space before, between, and after the lines.\n\n<strong>Align items<\/strong><strong>\n<\/strong>The align-items property vertically aligns the flexible container's items when the items do not use all available space on the cross-axis.\n\nf<strong>lex-start;\u00a0<\/strong>Items are positioned at the top of the container.\n<strong>flex-end;\u00a0<\/strong>Items are positioned at the bottom of the container.\n<strong>center;\u00a0<\/strong>Items are positioned at the center of the container (vertically).\n<strong>stretch;\u00a0<\/strong>Items are stretched to fit the container.\n\n<strong>Align content<\/strong><strong>\n<\/strong>The align-content property modifies the behavior of the\u00a0 flex-wrap property. It is similar to align-items, but instead of aligning flex items, it aligns flex lines.\n\n<strong>flex-start;\u00a0<\/strong>Lines are packed toward the start of the flex container.\n<strong>flex-end;\u00a0<\/strong>Lines are packed toward the end of the flex container.\n<strong>center;\u00a0<\/strong>Lines are packed toward the center of the flex container.\n<strong>space-between;\u00a0<\/strong>Lines are evenly distributed in the flex container.\n<strong>space-around;\u00a0<\/strong>Lines are evenly distributed in the flex container, with half-size spaces on either end.\n<strong>stretch;\u00a0<\/strong>Lines stretch to take up the remaining space.\n\n<strong>Flex grow<\/strong><strong>\n<\/strong>The flex-grow property specifies how much the object will grow relative to the rest of the flexible items inside the same flex container.\nIf all objects have flex-grow set to 1 then the remaining space in the container will be distributed equally to all objects. If one of the objects has a value of 2 then the remaining space will take up twice as much space as the other objects (if possible).\n<div id=\"wb_Text13\"><strong>Flex shrink<\/strong><strong>\n<\/strong>The flex-shrink property specifies how the object will shrink relative to the rest of the flexible items inside the same flex container.<\/div>\n<div id=\"wb_Text14\"><strong>Flex basis<\/strong><strong>\n<\/strong>The flex-basis property specifies the initial size of an object before the remaining space is distributed.\nThe length can be in percentages or pixels. If set to 'auto', the extra space is distributed based on the flex-grow value.<\/div>\n<div id=\"wb_Text15\"><strong>Align self<\/strong><strong>\n<\/strong>The align-self property of flex items overrides the flex container's align-items property for that object.\n<strong>flex-start,\u00a0<\/strong>Items are positioned at the top of the container.\n<strong>flex-end,\u00a0<\/strong>Items are positioned at the bottom of the container.\n<strong>center,\u00a0<\/strong>Items are positioned at the center of the container (vertically).\n<strong>stretch,\u00a0<\/strong>Items are stretched to fit the container.\n<strong>auto,\u00a0<\/strong>Use the default alignment of the flex container.<\/div>","_et_gb_content_width":""},"categories":[20,19],"tags":[],"_links":{"self":[{"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/posts\/208972"}],"collection":[{"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/comments?post=208972"}],"version-history":[{"count":1,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/posts\/208972\/revisions"}],"predecessor-version":[{"id":210613,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/posts\/208972\/revisions\/210613"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/media\/210580"}],"wp:attachment":[{"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/media?parent=208972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/categories?post=208972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themes.divizoom.com\/portfolio\/wp-json\/wp\/v2\/tags?post=208972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}