0

How to fill different color in 4differnet box

Html https://code.sololearn.com/WiAQ9ez84f9R/?ref=app

24th Nov 2021, 7:04 AM
PRIYANSHU GOYAL
PRIYANSHU GOYAL - avatar
4 Answers
+ 2
What are those <!maindiv> <!parent-row-1> for?
24th Nov 2021, 8:01 AM
Ipang
+ 2
Here is how to select each box If <!maindiv> is comment you forgot to add line <!-- maindiv --> I suggest you to add border just to check sizes of each box, this will help you figure out how big your box is, in your code you set background red to all 4 block, and pink(on top of red), to one column(2 box) https://code.sololearn.com/WxvVdv2dsfZ3/?ref=app
24th Nov 2021, 9:10 AM
PanicS
PanicS - avatar
+ 1
Ipang look like comments but wrong syntax. Maybe? PRIYANSHU GOYAL you need to select each box, if you wanna to have 4 diferent color,add id to each, and change background color
24th Nov 2021, 8:52 AM
PanicS
PanicS - avatar
+ 1
Makes sense now Sanja 👍
24th Nov 2021, 8:59 AM
Ipang