views:

142

answers:

3

- 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.

<p> - 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.</p>

In the above paragraph, I would like to use CSS to make all lines after the first line to automatically indent some space so that each line stays right after the - in the first line.

It's similar to a list item with list position set to outside, but I don't want to use a list.

What is the simplest way you can think of to achieve this effect? Less extra html markups will be better.

Many thanks to you all.

+1  A: 

have you tried to use the :fist-line-pseudo-class?

oezi
:fist-line sounds dangerous! I'd use :first-line instead... ;)
MatW
Would you mind telling us how you use :first-line to achieve the effect?
bobo
+2  A: 
p {
  text-indent: -1em;
  padding-left: 1em;
}
KennyTM
+2  A: 

You need text-indent. Normally text-indent pushes the first line inwards, but if you give it a minus figure and use a positive margin, you can achieve the effect you're after.

text-indent:-10px;
margin-left:10px
MatW