HTML Academy
Border width I
Border #16/13
Back to the list of tasks
  • 1. Border shorthand I
  • 2. Border shorthand II
  • 3. Border style I
  • 4. Border style II
  • 5. Border width I
  • 6. Border width II
  • 7. Border color I
  • 8. Border color II
  • 9. Physical border side I
  • 10. Physical border side II
  • 11. Combining side borders
  • 12. Combining three sides
  • 13. Combining four sides
Border color I
  • Sign up
  • Log in

Loading…
Everything will be ready in a few seconds.

  • Challenge

Border width II

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-6.css"> <link rel="stylesheet" href="style.css"> </head> <body> <div class="scene"> <div class="target picture"> <img src="picture-6.svg" width="430" height="305" alt=""> </div> </div> </body> </html>
.picture { border: {{lineWidth}} solid #f43f5e; }
-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.