CSS Dojo道場 · practice
All levels

Ellipsis for overflowing text

Level 7 of 10

Your goal

Keep the 200px label on a single line and cut it off with an ellipsis (…). You need white-space: nowrap, overflow: hidden and text-overflow: ellipsis. The label becomes one line tall.

Must usetext-overflowwhite-spaceoverflow
target content boxtarget outer edge (green = matched, red = not yet)
Feedback updates as you type, and your CSS is saved in this browser. Exact target numbers are in the Target panel.