CSS Bug Hunt Easy +10 XP
Width on Inline Element
The width has no effect on this element.
CSSFind the bug
1
span { width: 200px; } The bug is on line 1
Select the correct fix
Show answer and explanation
Answer: Add display: block or display: inline-block
Width has no effect on inline elements like <span>. Use inline-block or block to enable width/height control.
Hint: Inline elements ignore width and height.
What this challenge tests
Bug Hunt in CSS: display, inline, width.