The Challenge
Click the "Generate Challenge" button to be presented with a random component to build. The generator will also give you one random CSS selector and three random CSS properties that you are required to use when styling your component.
The Rules
- You have to incorporate the CSS selector and properties in a meaningful way. You can't just set it to the browser default and call it a day.
- Some CSS properties require other properties to work. You should probably use those.
- You can use as many other CSS selectors and properties as you want.
- You can structure your HTML however you like but it should still match how the industry defines that component.
- JavaScript is fine.
- 3rd party JavaScript is also fine but 3rd party CSS is not allowed.
You can find documentation for all CSS selectors and properties in the CSS-Tricks Almanac.