Skip to content

[docs][material-ui][Card] CardMedia description is wrong #42859

@arigoldx

Description

@arigoldx

Related page

https://mui.com/material-ui/react-card/

Kind of issue

Unclear explanations

Issue description

The text for Card Media states:

Card Media: an optional container for displaying background images and gradient layers behind the Card Content.

but I cannot figure out how to make a background image using CardMedia. The image displays above the CardContent. CardMedia is not meant to be used as a background for the Card and it's description in the docs should be updated.

Screenshot 2024-07-10 at 15 04 10

Context

Simply put, I'd like to add a background image for the card. Something like this (which I found on the web after searching for "login screen with background image"):

image

Search keywords: card, media, background image

Metadata

Metadata

Assignees

Labels

docsImprovements or additions to the documentation.good first issueGreat for first contributions. Enable to learn the contribution process.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: cardChanges related to the card.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions