Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS margin-left definition

Browser support
IEFFOpSaf

Type:

Syntax

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

Description

The margin-left property specifies the margin at the left space of the table.

Example

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