Files
freeCodeCamp/curriculum/challenges/arabic/01-responsive-web-design/css-grid/use-grid-area-without-creating-an-areas-template.arabic.md
The Coding Aviator 863c9ad1d0 fix(curriculum): Hide solution from tests in Arabic challenge (#35251)
* fix(curriculum): Arabic fix test to not show solution

* fix(curriculum): Remove Solution From Tests
2019-04-24 19:34:32 -07:00

1.8 KiB

id, title, challengeType, videoUrl, localeTitle
id title challengeType videoUrl localeTitle
5a94fe2669fb03452672e45e Use grid-area Without Creating an Areas Template 0 استخدم مساحة الشبكة بدون إنشاء قالب مناطق

Description

undefined

Instructions

undefined

Tests

tests:
  - text: 'يجب أن تحتوي فئة <code>item5</code> على خاصية <code>grid-area</code> بحيث تكون بين الخطين الأفقيين الثالث والرابع وبين الخطين الرأسيين الأول والرابع.'
    testString: 'assert(code.match(/.item5\s*?{[\s\S]*grid-area\s*?:\s*?3\s*?\/\s*?1\s*?\/\s*?4\s*?\/\s*?4\s*?;[\s\S]*}/gi), "يجب أن تحتوي فئة <code>item5</code> على خاصية <code>grid-area</code> بحيث تكون بين الخطين الأفقيين الثالث والرابع وبين الخطين الرأسيين الأول والرابع.");'

Challenge Seed

<style>
  .item1{background:LightSkyBlue;}
  .item2{background:LightSalmon;}
  .item3{background:PaleTurquoise;}
  .item4{background:LightPink;}

  .item5 {
    background: PaleGreen;
    /* add your code below this line */


    /* add your code above this line */
  }

  .container {
    font-size: 40px;
    min-height: 300px;
    width: 100%;
    background: LightGray;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 10px;
  }
</style>

<div class="container">
  <div class="item1">1</div>
  <div class="item2">2</div>
  <div class="item3">3</div>
  <div class="item4">4</div>
  <div class="item5">5</div>
</div>

Solution

// solution required