Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS margin definition

Browser supportInfo
IEFFOpSafVersionDepr.

Type:

Syntax

margin: <length> | <percentage> | auto {1,4}

Description

The margin property specifies the margin of the tables using this property.

Example

[Try this example yourself]
<style type="text/css">
  p.margin {margin: 2cm 3cm 4cm 3cm}
</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.