Friday, October 4, 2019

Codecademy Day 9

Today i learned how to do margins with CSS.
Here is a quick diagram explaining what diagrams are.
this is an example of an margin element. first element (30px) is for height and second element (20px) is for horizontal distance apart.
In this example of code we can see that width between the margins has already been set in the line above so all you would need to to do is set height (0px) and the width to auto causing it to read the line above.
Here is just a quick recap of all the code i did today.


Tomorrow i will be working how to change the box model

No comments:

Post a Comment