iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

CSS Challenges

Challenges are longer, end-to-end exercises. No fill-in blanks — you build something small from scratch.

Suggested first ten

ChallengeTopics covered
Style a button (default, hover, focus, disabled)buttons, pseudo-class
Build a 3-card responsive gridgrid, RWD
Make a sticky top navbarnavigation-bar, position
Centre a modal with a backdropalign, opacity
Build a card-flip animation3D transforms, transitions
Dark-mode toggle with CSS variablesvariables, media queries
Build a single-page Holy Grail layoutwebsite-layout
Recreate a Figma-style design token systemvariables, specificity
Animated loading spinneranimations, transforms
Style a complete contact formforms, attribute selectors
Tip: When you finish a challenge, save the snippet to a personal repo. Six months in you'll have a small design system of your own.

Example

Example
<!DOCTYPE html>
<html>
<head>
<style>
body { font-family: Verdana, sans-serif; }
.box { background: #04AA6D; color: #fff; padding: 20px; border-radius: 6px; }
</style>
</head>
<body>

<h1>CSS Challenges</h1>
<div class="box">Edit the CSS on the left, then click Run &raquo;</div>

</body>
</html>
Try it Yourself »

Exercise

A great challenge for practising hover states is styling a…

Answer:

Test yourself

Q1. Challenges differ from exercises because they…
Q2. A good first challenge is…
Q3. What should you do with finished challenges?

Discussion

Loading…