0

How to add two colours by dividing the webpage into two sections

7th May 2018, 12:09 PM
Dumindu Jayasekara
Dumindu Jayasekara - avatar
8 Respuestas
+ 5
☺ All right. Gradients are your friend then. Look at this code I just wrote. Look at the CSS part and then run it... Let's talk about any question you have in the comments of the code ☺ https://code.sololearn.com/W9Tq85AE0cTe/?ref=app
7th May 2018, 12:37 PM
cyk
cyk - avatar
+ 3
you can seperate the page into two halves (in width or in height) with two div elements set to 50% each with different background colors. if that's what you are asking.
7th May 2018, 12:14 PM
storm
storm - avatar
+ 3
Do you really want to divide the webpage into two? Or are you doing so cause you don't know how to add two colors without dividing them?
7th May 2018, 12:27 PM
cyk
cyk - avatar
+ 3
Are we good then? Did you understand how it works?
7th May 2018, 1:03 PM
cyk
cyk - avatar
+ 2
sure. just adjust the percentages depending on how big the units are going to be.
7th May 2018, 12:23 PM
storm
storm - avatar
+ 1
yeah that's the thing😂😂😂....???
7th May 2018, 12:32 PM
Dumindu Jayasekara
Dumindu Jayasekara - avatar
+ 1
@cyk 🙏
7th May 2018, 1:02 PM
Dumindu Jayasekara
Dumindu Jayasekara - avatar
0
thanks for the answer.....can i inrease the divisable units
7th May 2018, 12:20 PM
Dumindu Jayasekara
Dumindu Jayasekara - avatar