+ 3

How to add a full page background in html?

I want a full page background

19th Aug 2018, 5:29 PM
Aarushi Khatri
Aarushi Khatri - avatar
3 ответов
+ 6
You can use CSS. This is for color: body { background-color: black; } This is for image: body { background-image: url (source); }
19th Aug 2018, 6:18 PM
JTLZ
+ 4
JTLZ thanks a lot for answering my questions
20th Aug 2018, 12:04 AM
Aarushi Khatri
Aarushi Khatri - avatar
0
And then you have to add background-size:cover;
31st Jul 2020, 5:02 PM
Tushita Priya
Tushita Priya - avatar