shulme801 / TeaCozy

CodeAcademy Pro TeaCozy Project
0 stars 0 forks source link

Subtlety: margin vs padding #4

Open jericahuang opened 7 years ago

jericahuang commented 7 years ago

https://github.com/shulme801/TeaCozy/blob/master/resources/css/style.css#L75-L76

Nice intuition on using margins to separate elements. However upon examining your site using Chrome DevTools, the margins of these two elements overlap:

https://github.com/shulme801/TeaCozy/blob/master/index.html#L22-L23

In this case, it will be a better option to use padding instead of margin so that there is more space between these elements.

shulme801 commented 7 years ago

Jerica,

I missed this one -- I'd been trying to use Chrome DevTools on all the objects but I overlooked this. Thanks for the catch!

Steve