Day 25

Another day another opportunity to learn. Let’s continue with coding the Picasso Drawing.

  1. Remember the white-hat div we started styling yesterday, we continue today with border-top-color, border-right-color, border-left-color and border-bottom-color.

25 NO 1A.png

Day 25 no 1b.png

  1. Next step we give the div a position of absolute. (Remember, I said in an earlier lesson I explained that positioning is used to move the elements to different positions.

Day 25 no 2a.png

Day 25 no 2b.png

  1. We then style the next div with an id black-mask. We work on the width, height, background-color, position, left, top and z-index.

Day 25 no 3a.png

Day 25 no 3b.png

  1. Styling the div with and id of gray-instrument is what I did next. I used the attributes width, height, background-color, position, left, top, z-index.

Day 25 no 4a.png

  1. We go on to style the div with a class black-dot. We style the width, height and background-color.

DAY 25 no 5a.png

  1. Next, we work on border-radius, watch what happens when we make it 50%.

Day 25 no 6a.png

Day 25 no 6b.png

  1. After that we use the display attribute, then the margin is fixed to auto (take note what happens) and margin-top.

Day 25 no 7a.png

Day 25 no 7b.png

That's all for today. See ya tommorow.