Skip to content
Advertisement

How to make an image-covered background in react

I have an image and i need to make it cover all of the background.

The problem is, that for some reason the image isn’t covering all of the background, and it always stops somwhere where i put another object, and never goes farther then this.

Im using material ui and my code looks like this

JavaScript

This is the result i get:

Advertisement

Answer

Try this style

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement