Questions tagged [text-indent]

css property that specifies how much horizontal space should be left before the beginning of the first line of the text content of an element

css property that specifies how much horizontal space should be left before the beginning of the first line of the text content of an element

115 questions
91
votes
5 answers

Is it possible to indent JavaScript code in Notepad++?

I have some JavaScript code that is written in one line (no carriage returns), it's completely unreadable... With Notepad++, I tried to replace these characters ({, }, ;) by themselves plus a carriage return, but it still isn't very handy... Is…
GianT971
  • 4,385
  • 7
  • 34
  • 46
73
votes
8 answers

Indenting only the first line of text in a paragraph?

I have several paragraphs that I would like to indent, although only the first lines of these paragraphs. How would I target just the first lines using CSS or HTML?
Miles Henrichs
  • 2,300
  • 3
  • 20
  • 23
67
votes
5 answers

How do I indent a single line multiple times in vi or vim?

I've found several answers on how to indent multiple lines in vim, I want to know how to take a single line and indent it more than once. In effect, I want a shorter version of the following command: ">>>>>>>>>>" (That is 10 right bracket…
Cory Klein
  • 51,188
  • 43
  • 183
  • 243
52
votes
5 answers

Text indent after the first line in a paragraph

- A Reuters reporter in Surkhrod district in Nangarhar province, where villagers said the raids took place, said Afghan police fired at the crowd after some of them started throwing stones at local government buildings. In the above paragraph, I…
bobo
  • 8,439
  • 11
  • 57
  • 81
26
votes
5 answers

Is text-indent: -9999px a bad technique for replacing text with images, and what are the alternatives?

This article say we should avoid using this technique. This one says it's awesome. Is it true that Google looks inside CSS files for text-indent: -9999px; and punishes you? :| I'm using that property a lot to hide text. For example, I have a button…
Alex
  • 66,732
  • 177
  • 439
  • 641
25
votes
14 answers

Text indent is not working in ie7

I am working on a website and on the top navigation bar there is a search box, I applied the following css on the search submit button #submit { background: url("img/new-search-icon.png") no-repeat scroll -1px 0 #FFFFFF; border:0 none; …
18
votes
5 answers

Label text is wrapped but not indent second line

I have a form with limited width, however the label text maybe longer than form width, so the text was wrapped to multiple lines. My problem is that first line is indented because of input element but second line is not, it makes the form not…
Khoi Nguyen
  • 1,072
  • 2
  • 15
  • 32
14
votes
11 answers

hiding text using "text-indent"

I'm trying to hide some text inside an
  • element using CSS by setting text-indent: -999px;. For some reason this doesn't work when I set the direction of the document to "rtl" (right to left - my site is in Hebrew). When direction is "rtl" the…
  • Crippletoe
    • 395
    • 2
    • 6
    • 16
    13
    votes
    2 answers

    How to indent text exactly one character width

    The precondition is that I use monospace as my font-family, but it doesn't seem to work properly, I've tried some solution but neight of them work, my HTML structure is as below: