header { font-family: Helvetica; font-size: 20px; padding: 3px; } .div1 { width: 300px; height: 100px; border: 1px solid blue; border-radius: 10px; box-sizing: border-box; text-align: center; padding: 20px; } .div2 { width: 300px; height: 100px; padding: 30px; text-align: center; border: 1px dashed red; border-radius: 10px; box-sizing: border-box; } .div3 { border: 2px solid green; border-radius: 10px; font-family: Helvetica; margin: 15px 2px; width: 250px; height: 100px; padding: 20px; text-align: center; box-sizing: border-box; background-color: #FFDEAD; /*flex it here*/ display:flex; flex-direction: column; flex-wrap: wrap; justify-content: center; } .div3-child { border: 1px solid green; background-color: #FFF8DC; margin: 10px; font-family: Helvetica; /*flex commands here */ display:flex; flex-direction: column; flex-wrap: wrap; justify-content: center; }