Home > other >  How do I make the screen stretch the whole screen for react sandbox?
How do I make the screen stretch the whole screen for react sandbox?

Time:12-30

This is my sanbox project Sorry I'm fairly new to react and don't know how to make the red color stretch to the whole screen for any type of device without specifying the pixels. You can see that there is white space in the sides present in the app https://d50bvb.csb.app/. I want the entire screen red.

I am trying to set width and height to 100%

CodePudding user response:

You can add

body
{
  background-color: red;
}

This will make the whole screen color to be red or whatever color you want to have.

  • Related