Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

flexbox in css

/* 
  Most Common Flexbox properties:

    display: flex; 
    flex-direction: row / column;     --> used to justify the direction of content
    flex-wrap: wrap;                  --> holds the content inside flexbox container

  These Properties are also part of flexbox and only apply on a container which contain flexbox property

  Justify content:
    center
    start
    end
    baseline
    space-around -->commonly used

  Align items:
    center  
    baseline
    
  fr = fill up any available space

*/

.flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    /* column-count: 2;
  columns: 2; */
}
Source by nethub.af #
 
PREVIOUS NEXT
Tagged: #flexbox #css
ADD COMMENT
Topic
Name
3+7 =