Layout Options

  • Fixed Header
    Makes the header top fixed, always visible!
  • Fixed Sidebar
    Makes the sidebar left fixed, always visible!
Text Indent

Property Description

The text-indent property sets the indentation of the first line in a text-block.

This property has the following syntax:

text-indent: length|%|initial|inherit;

Note: If the value is negative, the first line will be indented to the left.

Property Values

Value Description
length Defines a fixed indentation in px, pt, cm, em, etc.
% Defines the indentation in % of the width of the parent element
initial Specifies that the value of the property should be set to the default value
inherit Specifies that the value of the property should be inherited from the parent element

Examples

This example shows how to indent the first line of paragraph elements 30 pixels.

p
{
  text-indent:30px;
}

Browser Support

Chrome Firefox IE Safari Opera
1.0 1.0 3.0 1.0 3.5

Miscellaneous Information

Inherited: Yes
Defined In: CSS1
Default Value: 0