.shelves { padding: 1em; } .shelves .box { max-width: 30em; padding: 2em; } .shelves .form { max-width: 25em; margin: auto; } .shelves .form-group { padding: 0.4em; } .shelves form label { display: block; margin-bottom: 0.5em; } .shelves input[type=text], .shelves select { margin: 0; width: 100%; }