- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS flex-flow Property
To set both the flex-direction and flex-wrap properties, use a single property flex-flow
Example
You can try to run the following code to implement the flex-flow property to set the direction and wrap property of flex −
<!DOCTYPE html> <html> <head> <style> .mycontainer { display: flex; background-color: orange; flex-flow: column wrap; } .mycontainer > div { background-color: white; text-align: center; line-height: 40px; font-size: 25px; width: 100px; margin: 5px; } </style> </head> <body> <h1>Quiz</h1> <div class = "mycontainer"> <div>Q1</div> <div>Q2</div> <div>Q3</div> <div>Q4</div> <div>Q5</div> <div>Q6</div> <div>Q7</div> <div>Q8</div> <div>Q9</div> </div> </body> </html>
- Related Articles
- CSS flex property
- CSS flex-basis property
- Animate CSS flex property
- CSS flex-shrink property
- CSS flex-wrap Property
- CSS flex-grow property
- CSS flex-direction Property
- Animate CSS flex-basis property
- Animate CSS flex-grow property
- Animate CSS flex-shrink property
- Shorthand CSS property for flex-direction and flex-wrap
- CSS shorthand property for the flex-grow, flex-shrink, and the flex-basis properties
- Usage of CSS grid-auto-flow property
- Role of CSS flex-wrap property wrap value
- Role of CSS flex-direction property column value

Advertisements