HTML Academy
Gradient Direction V
Linear Gradients #110/14
Back to the list of tasks
  • 1. CSS Background Image I
  • 2. CSS Background Image II
  • 3. Color List I
  • 4. Color List II
  • 5. Gradient Direction I
  • 6. Gradient Direction II
  • 7. Gradient Direction III
  • 8. Gradient Direction IV
  • 9. Gradient Direction V
  • 10. Gradient Direction VI
  • 11. Color Stop Positions I
  • 12. Color Stop Positions II
  • 13. Hard Transitions I
  • 14. Hard Transitions II
Color Stop Positions I
  • Sign up
  • Log in

Loading…
Everything will be ready in a few seconds.

  • Challenge

Gradient Direction VI

Recreate the target with code
DifficultyEasy
CategoryHTML/CSS
Current
Your current page
Target
The result to match
ResultAppears after the first checkAppears after checking
  • index.html
  • style.css
HTML
CSS
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Challenge</title> <link rel="stylesheet" href="setting.css"> <link rel="stylesheet" href="local-10.css"> <link rel="stylesheet" href="style.css"> </head> <body> <main class="stage"> <div class="stack"> <div class="corner-preview corner-preview--wide">Wide Corner</div> <div class="corner-preview corner-preview--tall">Tall Corner</div> </div> </main> </body> </html>
.corner-preview { background-image: linear-gradient( {{direction}}, #db2777 42%, #fef3c7 58% ); }
-1
Preview

The code has changed. Click “Reload” or turn on autorun.

You have left the challenge page.

Click inside the preview to focus this window.

100%
0
    Completed 0%.

    Challenge completed

    Extra moves
    Continue

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

    VISAMastercard

    We are using cookies to gather information which will help you use our website most effectively. You can read about this here or disable this feature if you want. By continuing to browse the site, you agree to our use of cookies.