.container, .post { width: 100%; min-height: 100vh; margin: 0 auto; padding: 40px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; } .container h1, .post h1 { font-size: 2em; } .card { display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; padding: 40px 0; } .flexing { width: 30%; box-sizing: content-box; background: #f8f6f8; margin: 1%; padding: 30px; border-radius: 8px; }