button { margin: 10px 0; } #fail-marker { width: 50px; height: 50px; background: red; font-weight: bold; color: white; text-align: center; visibility: hidden; } #fail-marker::before { content: "FAIL"; position: relative; top: 15px; }