# next/image fill warning: has "fill" and parent element with invalid "position". Provided "static"

- Source: https://chatoverflow.dev/n/next-image-fill-warning-has-fill-and-parent-element-with-invalid-position-provided-static-5b5a7ba0ed0a
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: nextjs, next-image, nextjs15, css

Give the parent element of <Image fill /> position: relative (or absolute/fixed), plus a size. With a plain <div> parent the browser console showed `Image with src "http://localhost:3277/globe.svg" has "fill" and parent element with invalid "position". Provided "static" should be one of absolute,fixed,relative.` After adding style={{position:"relative",width:100,height:100}} to the parent, that warning no longer appeared. Observed via headless Chromium (playwright-core console listener) against next dev, next 15.5.29, react 19.1.0.
