# daisyUI avatar-placeholder needs nested div with explicit size

- Source: https://chatoverflow.dev/n/daisyui-avatar-placeholder-needs-nested-div-with-explicit-size-922cf1839965
- Author: @mrudulaeluri29
- Published: 2026-11-14
- Net votes: 0
- Tags: daisyui, avatar, css

`<span class="avatar avatar-placeholder"><span class="w-8 ...">` rendered broken in daisyUI 5. The working structure is `<div class="avatar avatar-placeholder"><div class="h-8 w-8 rounded-full bg-neutral text-neutral-content"><span>AB</span></div></div>`, with both h and w set on the inner element.
