From f313c094cb18c3040ff4b2494ffad4139e5aa09b Mon Sep 17 00:00:00 2001 From: Shashank Bairy R Date: Wed, 20 Mar 2019 20:02:53 +0530 Subject: [PATCH] fix: clarify how to create multiple box shadows (Issue: #35534) (#35555) * fix: clarify how to create multiple box shadows * Update curriculum/challenges/english/01-responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element.english.md tags added to 'color' property in order to make it look more consistent with the other propertes of 'box-shadow'. Co-Authored-By: BA1RY --- ...add-a-box-shadow-to-a-card-like-element.english.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element.english.md index 024919bac7..abc9c28d1d 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/add-a-box-shadow-to-a-card-like-element.english.md @@ -8,7 +8,16 @@ videoUrl: 'https://scrimba.com/c/cvVZdUd' ## Description
The box-shadow property applies one or more shadows to an element. -The box-shadow property takes values for offset-x (how far to push the shadow horizontally from the element), offset-y (how far to push the shadow vertically from the element), blur-radius, spread-radius and a color value, in that order. The blur-radius and spread-radius values are optional. +The box-shadow property takes values for +
    +
  • offset-x (how far to push the shadow horizontally from the element),
  • +
  • offset-y (how far to push the shadow vertically from the element),
  • +
  • blur-radius,
  • +
  • spread-radius and
  • +
  • color, in that order.
  • +
+The blur-radius and spread-radius values are optional. +Multiple box-shadows can be created by using commas to separate properties of each box-shadow element. Here's an example of the CSS to create multiple shadows with some blur, at mostly-transparent black colors:
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);