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: 340px; border: 1px solid #c3c3c3; display: flex; flex-direction: column-reverse; } .example div { width: 60px; height: 60px; } </style> </head> <body> <h2>Flex-direction property example</h2> <div class="example"> <div style="background-color: #DC143C;">A</div> <div style="background-color: #0000CD;">B</div> <div style="background-color: #9ACD32;">C</div> <div style="background-color: #666666;">F</div> </div> </body> </html>