style.css
index.html
body { font-family: sans-serif; padding: 20px; } div { background-color: tomato; border-bottom: 2px solid firebrick; border-right: 2px solid firebrick; padding: 5px; } section { background-color: gold; min-height: 120px; } section:nth-child(2), section:nth-child(3) { display: flex; margin-top: 20px; } section:nth-child(3) { flex-direction: column; }
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="/assets/styles/reset.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> </head> <body> <section> <div> <p>Item 1</p> </div> <div> <p>Item 2</p> </div> <div> <p>Item 3</p> </div> </section> <section> <div> <p>Item 1</p> </div> <div> <p>Item 2</p> </div> <div> <p>Item 3</p> </div> </section> <section> <div> <p>Item 1</p> </div> <div> <p>Item 2</p> </div> <div> <p>Item 3</p> </div> </section> </body> </html>