Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS padding-left definition

Browser support
IEFFOpSaf

Type:

Syntax

padding-left: <length> | <percentage>

Description

The padding-left property specifies the padding to the left in the table.

Example

[Try this example yourself]
<style type="text/css">
td.padding1 
{
  padding-left: 30px;
}

</style>

<table border="1">
  <tr>
    <td class="padding1">
      This cell has 30 pixels padding to the left.
    </td>
  </tr>
</table>

Output

This cell has 30 pixels padding to the left.
  • Comments

No comments added.