HTML Academy
Shadow Art – 1
Shadow Play15/17
Back to the list of tasks
  • 1. The box-shadow Property
  • 2. Horizontal Shadow Offset
  • 3. Vertical Shadow Offset
  • 4. Shadow Feathering
  • 5. Stretching the Shadow
  • 6. Feathering + Stretch
  • 7. Shadow Color
  • 8. Inner Shadow
  • 9. Challenge: Dim Shadows
  • 10. Semi-Transparent Shadow
  • 11. Casting a Shadow Only from One Side
  • 12. Multiple Shadows
  • 13. Multiple Borders for One Element
  • 14. Shadow Art – 1
  • 15. Shadow Art - 2
  • 16. Shadow Art - 3
  • 17. Challenge: The Foreboding Shadows
Shadow Art - 3
  • Sign up
  • Log in

Loading…
Everything will be ready in few seconds

  • Theory
  • Theory
  • Comments

Shadow Art - 2

So, we have started creating a circle using inner shadows.

In this step, we will complete the circle by adding some more shadows. By the way, they will also be inner shadows.

The method for creating our circle is simple. Each time we add an increasingly narrow shadow to the beginning of the list of shadows, where it will partially overlap the underlying shadows. We chose to create inner shadows because they do not go beyond the boundaries of the element.

Comments

  • index.html
  • style.css
HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Shadow Art – 2</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="circle"></div> </body> </html>
CSS
body { padding: 20px; background-color: white; } .circle { margin: 10px auto; width: 100px; height: 100px; border-radius: 50%; box-shadow: inset -5px -5px 5px 3px white, inset 0 0 0 9px #6c6d70, inset 0 0 0 10px black; }

What didn’t you like in this task?

Thanks! We’ll fix everything at once!

The code has changed, click “Refresh” or turn autorun on.

You’ve gone to a different page

Click inside the mini-browser to shift the focus onto this window.

100%
Goalscompleted
0

    Add three more inner shadows. For each new shadow, add it to the beginning of the list of shadows.

    1. Stretch of 5px, color: black, inner.
    2. Stretch of 4px, color: #4f5054, inner.
    3. Both offsets of 2px, feathering of 2px, color: white, inner.

    Cookies ∙ Privacy ∙ License Agreement ∙ About ∙ Contacts ∙ © HTML Academy OÜ, 2019−2025

    VISAMastercard

    Log in

    or

    Forgot your password?

    Sign up

    Sign up

    or
    Log in

    Restore access

    Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.

    Forgot to connect your email to the profile? Email us and we’ll help.