Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS margin-top definition

Syntax

margin-top: <length> | <percentage> | auto

Description

The margin-top property specifies the margin at the top of the table.

Example

[Try this example yourself]
<style type="text/css">
  p.margin {margin-top: 2cm}
</style>

<p>
  This is a paragraph with no specified margins
</p>
<p class="margin">
  This is a paragraph with specified margins
</p>

Output

This is a paragraph with no specified margins

This is a paragraph with specified margins

  • Comments

No comments added.