+ 1

How to change FULL BACKGROUND Color

26th Nov 2016, 10:32 PM
GRANTAWE
GRANTAWE - avatar
4 Réponses
+ 2
it is better in css there is attribute in html too in js just select the element body for simple let select by id <body bgcolor=black id="body"> or <body style="background: black;"> or document.getElementById("body").style.background="black";
27th Nov 2016, 11:38 AM
Sandeep Chatterjee
0
I assume you mean in CSS. You can set the background color of html or body, as every visible element is inside these tags they will inherit the background color you use for them.
26th Nov 2016, 11:20 PM
Pierre Varlez
Pierre Varlez - avatar
0
body { background-color: hsl(210, 98%, 70%); }
26th Nov 2016, 11:45 PM
Samuel Neo
Samuel Neo - avatar
0
body { backround-color: gray } you can choose any color you want
11th Nov 2019, 11:31 PM
*~sophia~*