Text Stroke

Text Stroke code:

1.index.html:

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Text Stroke</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>Stroke</h1> </body> </html>

2.style.css:

body { margin: 0; padding: 0; background: blue; } h1 { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); margin: 0; padding: 0; color: white; font-family: Verdana, Geneva, Tahoma, sans-serif; letter-spacing: 2px; text-transform: uppercase; font-size: 6em; -webkit-text-fill-color: transparent; -webkit-text-stroke-width: 2px; }

Оставьте комментарий

Ваш адрес email не будет опубликован.