.custom-button { background: white; margin-bottom: 0px; border: 1px solid #ccc; border-radius: 20px; width: 100%; max-width: 105px; height: 160px; padding: 10px; } .iconBox { display: block; width: 100%; position: static; img { display: block; max-width: 45%; padding-bottom: 5px; padding-top: 5px; } } .titleBox { display: block; span { font-size: 40px; font-weight: bold; color: black; text-align: left; display: block; } } .pClass { color: black; width: 85%; margin-top: 5px; font-weight: bold; text-align: left; display: block; }