Skip to content

Commit

Permalink
Update next/image docs for relative parent with layout=fill. (#26615)
Browse files Browse the repository at this point in the history
  • Loading branch information
leerob authored Jun 25, 2021
1 parent 6f42096 commit e8a9bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api-reference/next/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ When `responsive`, the image will scale the dimensions down for smaller
viewports and scale up for larger viewports.

When `fill`, the image will stretch both width and height to the dimensions of
the parent element, usually paired with the [`objectFit`](#objectFit) property.
the parent element, provided the parent element is relative. This is usually paired with the [`objectFit`](#objectFit) property.

Try it out:

Expand Down

0 comments on commit e8a9bd1

Please sign in to comment.