With Ref
http://www.w3schools.com/cssref/pr_background-color.asp
But when I set top margin for body tag then its margin is also colored black. While if I move that style to p tag then it works for only p tag background and margin is not colored black.The background of an element is the total size of the element, including padding and border (but not the margin).
What's I am understanding wrong?HTML Code:<body style="margin-top:200px; background-color: black; color:white; border: 1px solid red;"> <h1>Test</h1> <p>Hello World!!</p> </body>


Reply With Quote
