Skip to main content
🎨 CSS Basics

Style a button ✨

You've learned color, background, padding, and rounded edges. A real button is just those properties working together! border-radius is the new one — it softens the corners.

button {
  background-color: green;
  color: white;
  padding: 12px;
  border-radius: 8px;
}

Four lines, each the same property: value; shape. You've got this. 💪

Your task

Style the <button> with a blue background, white text, 12px of padding, and an 8px border-radius. Drag the blocks in order, or tap the hint to build it up.

⚡ 40 XP

Hints

index.htmliframe
Loading editor…
Preview
Run your code to see test results.