Yahoo Web Search

Search results

  1. Jun 13, 2024 · The text-indent CSS property sets the length of empty space (indentation) that is put before lines of text in a block. Try it. Horizontal spacing is with respect to the left (or right, for right-to-left layout) edge of the containing block-level element's content box. Syntax. css.

    • block containers
    • refer to the width of the containing block
    • yes
  2. The text-indent property specifies the indentation of the first line in a text-block. Note: Negative values are allowed. The first line will be indented to the left if the value is negative. Show demo

    • yes. Read about animatable Try it
    • object .style.textIndent="50px" Try it
    • yes
    • CSS1
  3. Sep 6, 2011 · The text-indent property specifies how much horizontal space text should be moved before the beginning of the first line of the text content of an element. Spacing is calculated from the starting edge of the block-level container element.

  4. CSS Property: text-indent Indentation at the start of the first line in a block of text. The horizontal indentation will apply to the left of text in a typical Western left-to-right layout or the to right of text in a right-to-left layout.

  5. The text-indent property modifies the horizontal spacing of the first line in a text block, influencing its position within a block-level element. The adjustment occurs from the left edge in left-to-right layouts and vice versa for right-to-left layouts.

  6. Sep 27, 2002 · ul { list-style: none; margin-left: 0; padding-left: 1em; text-indent: -1em; } Either the padding or the margin needs to be set to zero, with the other one set to 1em. Depending on the “bullet” that you choose, you may need to modify this value.