Skip to content

Instantly share code, notes, and snippets.

@naturallucky
Last active April 23, 2019 08:03
Show Gist options
  • Save naturallucky/23fd3c31cd5bf1ab2b58c2f2d63f59fb to your computer and use it in GitHub Desktop.
Save naturallucky/23fd3c31cd5bf1ab2b58c2f2d63f59fb to your computer and use it in GitHub Desktop.
3/3 CSSで斜線を引く方法:表の空セルなど任意のHTML要素に [ホームページ作成] All About
https://allabout.co.jp/gm/gc/457196/3/
.diagnal-line {
background-image: linear-gradient
(to top right, transparent, transparent 48%, red 48%, red 52%, transparent 52%, transparent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment