Files

34 lines
780 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Use CSS Grid Units to Change the Size of Columns and Rows
---
# Use CSS Grid Units to Change the Size of Columns and Rows
2018-10-12 15:37:13 -04:00
---
## Problem Explanation
2018-10-12 15:37:13 -04:00
This challenge requires you to set the width of the columns of the container to the ones as specified in the challenge description.
---
## Hints
### Hint 1
2018-10-12 15:37:13 -04:00
Change the `grid-template-columns` property.
---
## Solutions
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
Since the challenge requires you to set the width to `1fr`, `100px`, and `2fr`, change the `css grid-template-columns` property of `.container` to:
```css
2018-10-12 15:37:13 -04:00
grid-template-columns: 1fr 100px 2fr;
```
2018-10-12 15:37:13 -04:00
#### Relevant Links
2018-10-12 15:37:13 -04:00
* [An Introduction to the fr CSS unit - CSS tricks](https://css-tricks.com/introduction-fr-css-unit/)
</details>