Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> .example { width: 350px; height: 350px; border: 1px solid #c3c3c3; display: flex; flex-direction: row; } .example div { width: 70px; height: 70px; } </style> </head> <body> <h2>Flex-direction property example</h2> <div class="example"> <div style="background-color: #8ebf42;">A</div> <div style="background-color: #1c87c9;">B</div> <div style="background-color: #eeeeee;">C</div> <div style="background-color: #666666;">F</div> </div> </body> </html>