471,610 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

CSS Margin-top vs. top

2
Can someone tell me what the difference is between margin-top and top? I've googled it, looked on W3C, but i can't find it. Can someone help me?
Nov 4 '07 #1
1 8283
drhowarddrfine
7,435 Expert 4TB
Margin is that space between the edge of an element's box and the edge of the complete box, such as the margin of a letter. 'top' displaces the element's margin edge from the containing blocks box, such as that same piece of paper inside a cardboard box, but it is not up against the edge of the container.
Nov 4 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Tony Benham | last post: by
4 posts views Thread by Harlan Messinger | last post: by
3 posts views Thread by Brian | last post: by
26 posts views Thread by meltedown | last post: by
3 posts views Thread by Luciano A. Ferrer | last post: by
1 post views Thread by Jeremy | last post: by
11 posts views Thread by Pablito | last post: by
2 posts views Thread by Steve Richter | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.