flex-flow
Lesson 6 of 15 in Coddy's CSS Flexbox - The Complete Course course.
The flex-flow property is a shorthand property for flex-direction and flex-wrap properties.
Example,
.container {
display: flex;
flex-flow: column wrap-reverse;
}Challenge
EasyDefine the direction and wrap of the given flexbox to row and wrap, use flex-flow.
Try it yourself
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
</div>
</body>
</html>All lessons in CSS Flexbox - The Complete Course
2Flex Container
Flexboxflex-directionflex-wrapflex-flowjustify-contentalign-itemsalign-contentgapPerfect Center