Add solution

For "Use the flex-basis Property to Set the Initial Size of an Item" challenge
pull/22362/head^2
Dana Ottaviani 2018-11-03 18:21:22 -04:00 committed by Valeriy
parent 874e7ed3da
commit ac5bbb2dc7
1 changed files with 25 additions and 2 deletions

View File

@ -73,8 +73,31 @@ tests:
## Solution
<section id='solution'>
```html
<style>
#box-container {
display: flex;
height: 500px;
}
```js
// solution required
#box-1 {
background-color: dodgerblue;
height: 200px;
flex-basis: 10em;
}
#box-2 {
background-color: orangered;
height: 200px;
flex-basis: 20em;
}
</style>
<div id="box-container">
<div id="box-1"></div>
<div id="box-2"></div>
</div>
```
</section>