I believe the reason you are not getting the expected results is because, since you already gave the h1 element a lower border of 30px, the p element already has a margin above it of 30px, so the message should have a margin-top of 20px doing nothing. Try giving the p margin-top of 40px element and see that the difference between them increases by 10 pixels.
source share