parent
8b370920ba
commit
0ef4b1d167
@ -0,0 +1,32 @@
|
||||
.flex-container {
|
||||
/* We first create a flex layout context */
|
||||
display: flex;
|
||||
|
||||
/* Then we define the flow direction
|
||||
and if we allow the items to wrap
|
||||
* Remember this is the same as:
|
||||
* flex-direction: row;
|
||||
* flex-wrap: wrap;
|
||||
*/
|
||||
flex-flow: row wrap;
|
||||
|
||||
/* Then we define how is distributed the remaining space */
|
||||
justify-content: space-around;
|
||||
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.flex-item {
|
||||
background: tomato;
|
||||
padding: 5px;
|
||||
width: 200px;
|
||||
height: 150px;
|
||||
margin-top: 10px;
|
||||
line-height: 150px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 3em;
|
||||
text-align: center;
|
||||
}
|
Loading…
Reference in new issue