+ 3

How to change the background color in html ?

I want different colors to appear at the same time on the page..not just one color on the whole

20th Jun 2020, 1:18 PM
Anmol Sudhendu
Anmol Sudhendu - avatar
3 Answers
+ 4
Divide your page into div tags And give for each div tag the style u want or use the attribute background: linear-gradient(); Anmol Sudhendu
20th Jun 2020, 1:26 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 4
background: linear-gradient();
20th Jun 2020, 1:29 PM
Gordon
Gordon - avatar
+ 2
Linear gradient for chrome: background : -webkit-linear-gradient(red, yellow, orange); ------------------------------------------------ Linear gradient for Mozilla Firefox: background : -moz-linear-gradient(red, yellow, orange); ---------------------------------------------------- Radial gradient for chrome: background : -webkit-radial-gradient(red, yellow, orange); ------------------------------------------------ Radial gradient for Mozilla Firefox: background : -moz-radial-gradient(red, yellow, orange);
20th Jun 2020, 2:35 PM
Omkar Kamat
Omkar Kamat - avatar