<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Three Equal Flex Column Layout</title> <style> .flex-container { width: 80%; min-height: 250px; margin: 0 auto; font-size: 35px; display: -webkit-flex; /* Safari */ display: flex; /* Standard syntax */ border: 5px solid blue; } .flex-container div { padding: 15px; background: orange; -webkit-flex: 1; /* Safari */ -ms-flex: 1; /* IE 10 */ flex: 1; /* Standard syntax */ } .flex-container div.bg-alt{ background: lightgreen; } </style> </head> <body> <div class="flex-container"> <div class="item1">Part 1</div> <div class="item2 bg-alt">Part 2</div> <div class="item3">Part 3</div> </div> </body> </html>