freecoding.school100% FREE · NO SIGNUP
Neon DistrictISSUE #49 of 50

references · property list · selectors · units

PrismaVSJank the Janitor
Prisma saysKnow the reference shape: properties, selectors, units, and functions — look up, don’t memorize.

CSS has hundreds of properties and many units (absolute px; relative em/rem/%/vw/vh/ch; functions like calc/clamp). Nobody memorizes it all. Know the categories and where to look (MDN). Relative units (rem, %, vw) are the backbone of responsive, accessible design.

Power-ups you unlock

Jank the Janitor attacks — common mistakes

Boss battleBuild one box using four units (px, rem, %, vw); watch each respond to resize/zoom.

Example code

<!doctype html><html><head><meta charset="utf-8">
<style>.b{width:80vw;max-width:30rem;padding:1rem;border:2px solid #b388ff;color:#e6e0ff;font-size:1.1rem}</style></head><body style="background:#06040d;padding:20px"><div class="b">mixed units, responsive</div></body></html>
▶ Open the interactive comic issue
‹ Css Frameworks · Tailwind · Bootstrap · VanillaExamples · Exercises · Quiz · Certificate ›