CSS- how margins work

Didn't quite realize until now that an element's margin doesn't respect the margins of other elements next to it. Basically, I see them overlapping in Dev Tools. That explains why adjusting padding is not the same as adj margins when you're spacing things out.

Comments

Popular posts from this blog

Code Wars: Data Reverse (6 kyu)

Code Wars: longest_palindrome (6 kyu)

Code Wars: Find the odd int