freeCodeCamp/curriculum/challenges/arabic/01-responsive-web-design/css-flexbox/align-elements-using-the-ju...

1.1 KiB

id title challengeType videoUrl localeTitle
587d78ac367417b2b2512af6 Align Elements Using the justify-content Property 0 محاذاة العناصر باستخدام خاصية justify-content

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'assert($("#box-container").css("justify-content") == "center", "The <code>#box-container</code> element should have a <code>justify-content</code> property set to a value of center.");'

Challenge Seed

<style>
  #box-container {
    background: gray;
    display: flex;
    height: 500px;

  }
  #box-1 {
    background-color: dodgerblue;
    width: 25%;
    height: 100%;
  }

  #box-2 {
    background-color: orangered;
    width: 25%;
    height: 100%;
  }
</style>

<div id="box-container">
  <div id="box-1"></div>
  <div id="box-2"></div>
</div>

Solution

// solution required