html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } .row{ display: block; margin-left: auto; margin-right: auto; width: 90%; } .column { float: left; width: 20%; margin-bottom: 16px; padding: 0 8px; } @media screen and (max-width: 650px) { .column { width: 100%; display: block; } .s1{ display: block; margin-left: auto; margin-right: auto; width: 90%; } } .card { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); border-radius: 6px; } .container { padding: 0 16px; } .container::after, .row::after { content: ""; clear: both; display: table; } .title { color: grey; } .button { border: none; outline: 0; display: inline-block; padding: 8px; color: white; background-color: #000; text-align: center; cursor: pointer; width: 100%; } .gt{ width: 480px; height: 260px; border-radius: 6px 6px 0 0; } .button:hover { background-color: #555; }