Skip to content

background-image CSS attribute vs <img/> element #319

@CarcajadaArtificial

Description

@CarcajadaArtificial

Hi everyone,

I wanted to know if there's a way to add images using the CSS background-image attribute instead of <img/> elements. I find that <img/> elements have limitations and don't provide the flexibility needed for full manipulation, especially when it comes to styling and responsiveness.

Using CSS for images could offer more control over properties like positioning, scaling, and layering, but I’m not sure how to implement this effectively or if it's supported in our current setup.

Has anyone explored this approach or have suggestions on how to do this? Any insights or examples would be greatly appreciated!

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions