PNLdev
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
En
English
فارسی
En
English
فارسی
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
Run
<!DOCTYPE html> <html> <head> <style> #main { width: 150px; height: 150px; border: 3px solid #88c999; display: flex; flex-wrap: wrap; } #main div { width: 50px; height: 50px; } </style> </head> <body> <h1>flex-wrap property example</h1> <div id="main"> <div style="background-color:yellow;">A</div> <div style="background-color:lightgreen;">B</div> <div style="background-color:purple;">C</div> <div style="background-color:red;">D</div> <div style="background-color:green;">E</div> <div style="background-color:brown;">F</div> </div> <p><b>Note:</b> Internet Explorer 10 and earlier versions do not support the flex-wrap property.</p> </body> </html>