SitePoint
Reference
CSS
Box Properties
Margins
margin-top
CSS Live Demo: margin-top
(this page)
See also:
All Live Demos
CSS Live Demo: margin-top
Type your
CSS
here:
(any properties allowed except expression, behavior and @import)
#example p { margin-top:20px; } #example { border:4px solid green; } p { border:4px solid orange; margin:0; }
Type your
HTML
here:
(any tags allowed except script, iframe, frame, object, img and embed)
<div id="example"> <p>I believe I can fly, I believe I can touch the sky.</p> </div>
Show me!
Your results appear here: