Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Der Titel des Dokuments</title> <style> * { margin: 0; padding: 0; } *, :before, :after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html, body { min-height: 100%; } body { font-family: 'Oswald', sans-serif; } .wrapper { text-align: center; } /* Clip text element */ .clip-text { font-size: 6em; font-weight: bold; line-height: 1; position: relative; display: inline-block; margin: 0.25em; padding: 0.5em 0.75em; text-align: center; /* Color fallback */ color: #fff; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .clip-text:before, .clip-text:after { position: absolute; content: ''; } /* Background */ .clip-text:before { z-index: -2; top: 0; right: 0; bottom: 0; left: 0; background-image: inherit; } /* Text Background */ .clip-text:after { position: absolute; z-index: -1; top: 0.125em; right: 0.125em; bottom: 0.125em; left: 0.125em; background-color: #fc0; } /* Change the background position to display letter when the black zone isn't here */ .clip-text--no-textzone:before { background-position: -0.65em 0; } .clip-text--no-textzone:after { content: none; } .clip-text-one { background-image: url("/uploads/media/default/0001/02/8ca4045044162379597641472fa0bb5489ba418f.jpeg"); } .clip-text-two { background-image: url("/uploads/media/default/0001/03/6514e37cd15dbe1bca3e3b961baa3a19e2283dc3.jpeg"); } </style> </head> <body> <div class="wrapper"> <div class="clip-text clip-text-one">SCHLIESSEN SIE SICH UNS AN!</div> <div class="clip-text clip-text-two clip-text--no-textzone">SCHLIESSEN SIE SICH UNS AN!</div> </div> </body> </html>