Skip to content

Instantly share code, notes, and snippets.

@manabuyasuda
Created November 22, 2023 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manabuyasuda/9eb083a253d87d8a3e45f5ad681f875a to your computer and use it in GitHub Desktop.
Save manabuyasuda/9eb083a253d87d8a3e45f5ad681f875a to your computer and use it in GitHub Desktop.
縁取り文字
.bordering {
position: relative;
color: #fff;
-webkit-text-stroke: 4px #000; // デザインデータ上の縁取り×2
&::before {
content: attr(data-text);
position: absolute;
-webkit-text-stroke: 0;
}
}
<p class="bordering" data-text="テキスト">テキスト</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment