14
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【css3】linear-gradientを応用してボックスの角を削る

Last updated at Posted at 2018-03-28

CODE PENに登録したので小ネタです。
CSSのグラデーションを使って、角の欠けた四角形を書く方法。
クラス「box01」に書いてある部分が主な部分で、divに設定したプロパティはレイアウト用です。

See the Pen 【css3】linear-gradientを応用してボックスの角を削る by Yuki Koide (@yuki_24) on CodePen.

ボックス内を田の字型に4分割し、それぞれの背景にグラデーションを設定するイメージで。

【応用】これを応用すると、よくある角折れ表現もCSSだけで作れます

See the Pen 【CSS3】背景だけでよくある角が折れた表現を作る by Yuki Koide (@yuki_24) on CodePen.

14
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?