CSS TEXT-INDENT
This property specifies the horizontal indent from the left side of the current parent Block Element for the first line in the current Block. The indent is only applied at the beginning of the block and not after any intervening line-breaking elements (like BR.)
Note: Negative values are allowed. The first line will be indented to the left if the value is negative.
Examples
p {
text-indent: 18px
}Â
p {
text-indent: -11px
}
Possible Values
inherit: Explicitly sets the value of this property to that of the parent
length: Defines a fixed indentation
%: Defines an indentation in % of the width of the parent element
3 Responses
Hi,
How do I get an indent on right-left text? I have tried a negative but doesn´t seem to work.
James
Hi,
Also,i need to dynamically indent a text . How do i do it using dynamic CSS? any ideas?
Thanks in Advance,
Swathi
Is there anyway to make text-work with RTL languages?