LoginSignup
28
24

More than 5 years have passed since last update.

cssで一部だけを角丸にする。

Posted at

4つとも角丸にするのではなくて、一部(右上のみ)に適応させたい。

ほんっとにはじめてのHTML5 [18-1] CSS3で、ボックス要素を角丸にしよう(border-radius)

-webkit-border-radius: 10px 20px 30px 40px / 10px 20px 30px 40px;
-moz-border-radius: 10px 20px 30px 40px / 10px 20px 30px 40px;
border-radius: 10px 20px 30px 40px / 10px 20px 30px 40px;

水平方向の 左上、右上、右下、左下 / 垂直方向の 左上、右上、右下、左下

の順で指定するらしい。

指定されたpxを半径とした円の円周を角丸の大きさとして考えてるみたい。

28
24
2

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
28
24