.box { flex-direction: column; line-height: 1; } .box::before { content: 'Hell\a0\a0Wor d'; } .box::after { content: '\a0\a0\a0\a0o\a0\a0\a0\a0l\a0'; color: #cc9f76; margin-top: -1em; }
.box::before { background: linear-gradient(to right, black 2em, #c39f76 2em, #c39f76 2.5em, black 2.5em, black 4.5em, #c39f76 4.5em, #c39f76 5em, black 5em); -webkit-background-clip: text; background-clip: text; color: transparent; content: 'Hello World'; }