* fix(curriculum): tests quotes * fix(curriculum): fill seed-teardown * fix(curriculum): fix tests and remove unneeded seed-teardown
		
			
				
	
	
	
		
			2.8 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			2.8 KiB
		
	
	
	
	
	
	
	
id, title, challengeType, videoUrl
| id | title | challengeType | videoUrl | 
|---|---|---|---|
| 5a94fe8569fb03452672e464 | Create Grids within Grids | 0 | https://scrimba.com/p/pByETK/c6N78Ap | 
Description
display and grid-template-columns properties of the element with the item3 class, you create a grid within your grid.
Instructions
item3 class into a grid with two columns with a width of auto and 1fr using display and grid-template-columns.
Tests
tests:
  - text: <code>item3</code> class should have a <code>grid-template-columns</code> property with <code>auto</code> and <code>1fr</code> as values.
    testString: assert(code.match(/.item3\s*?{[\s\S]*grid-template-columns\s*?:\s*?auto\s*?1fr\s*?;[\s\S]*}/gi), '<code>item3</code> class should have a <code>grid-template-columns</code> property with <code>auto</code> and <code>1fr</code> as values.');
  - text: <code>item3</code> class should have a <code>display</code> property with the value of <code>grid</code>.
    testString: assert(code.match(/.item3\s*?{[\s\S]*display\s*?:\s*?grid\s*?;[\s\S]*}/gi), '<code>item3</code> class should have a <code>display</code> property with the value of <code>grid</code>.');
Challenge Seed
<style>
  .container {
    font-size: 1.5em;
    min-height: 300px;
    width: 100%;
    background: LightGray;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr auto;
    grid-gap: 10px;
    grid-template-areas:
      "advert header"
      "advert content"
      "advert footer";
  }
  .item1 {
    background: LightSkyBlue;
    grid-area: header;
  }
  .item2 {
    background: LightSalmon;
    grid-area: advert;
  }
  .item3 {
    background: PaleTurquoise;
    grid-area: content;
    /* enter your code below this line */
    /* enter your code above this line */
  }
  .item4 {
    background: lightpink;
    grid-area: footer;
  }
  .itemOne {
    background: PaleGreen;
  }
  .itemTwo {
    background: BlanchedAlmond;
  }
</style>
<div class="container">
  <div class="item1">header</div>
  <div class="item2">advert</div>
  <div class="item3">
    <div class="itemOne">paragraph1</div>
    <div class="itemTwo">paragraph2</div>
  </div>
  <div class="item4">footer</div>
</div>
Solution
var code = ".item3 {grid-template-columns: auto 1fr; display: grid;}"