.image { display: inline-block; margin-top: 6px; width: 150px; background: #f8f9fa; border: 2px solid #777777; padding: 0; } .image p { text-align: center; margin: 0; padding: 0; } .image hr { background-color: black; }