How to add more background-colors in HTML? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to add more background-colors in HTML?

Can you explain how to add more background-colors in html? Like... A half of the file being blue and a half being black.

6th Dec 2018, 2:55 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
6 Answers
6th Dec 2018, 3:36 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 6
Yes dρlυѕρlυѕ that is what I want to do.
6th Dec 2018, 3:37 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 3
Bebida Roja can you give me an example? I want to make a page looking like a book , first page black , second to n page grey and the last one black again.
6th Dec 2018, 3:18 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Alex, then you should mark d plus plus answer as best instead
6th Dec 2018, 4:17 PM
Gordon
Gordon - avatar
+ 1
you could use box-shadow for this.
6th Dec 2018, 3:14 PM
Bebida Roja
Bebida Roja - avatar
+ 1
box-shadow: inset 10px 0 red; will show the inner workings of it.
6th Dec 2018, 3:32 PM
Bebida Roja
Bebida Roja - avatar