box-shadow
プロパティ div{
box-shadow: 10px 10px 10px gray;
}
(横方向のずれ具合 縦方向のずれ具合 ぼかし具合 [影の大きさの増分] 色)
inset
:内側の影,
で区切るtext-shadow
プロパティ div{
text-shadow: 3px 3px 2px gray;
}
(横方向のずれ具合 縦方向のずれ具合 ぼかし具合 [影の大きさの増分] 色)
,
で区切るborder-radius
プロパティ
div{
border-radius: 10px;
}
border-radius: 50%;
width
を指定background
プロパティ
linear-gradient()
:直線的なグラデーションの値 div{
background: linear-gradient(white, gray);
}
(white 50%, gray 80%)
:開始点(中心)から終了点までの相対的な距離(45deg, white, gray)
:回転角度(指定の値+180)radial-gradient()
:放射状のグラデーションの値 div{
background: radial-gradient(white, gray);
}
(white 50%, gray 80%)
:開始点から終了点までの相対的な距離(at top, white, gray)
:開始点の位置(%
, px
でも指定可能)(circle at top, white, gray)
:円形の状態を保つconic-gradient()
:扇形(円錐)のグラデーションの値 div{
background: conic-gradient(white, gray);
}
(white 0%, gray 25% 50%, white 50% 75%, gray 76% 100%)
:開始点から終了点までの相対的な距離