Reputation: 9439
I'm trying to margin a text from the second line. I just know text spacing & margin but it doesn't help in thie case. How to do like the picture below.
Upvotes: 0
Views: 423
Reputation: 7684
I hope this may helpful to you..
<dl>
<dt>1. Coffee</dt>
<dd>black hot drink</dd>
<dt>2.Milk</dt>
<dd>white cold drink</dd>
</dl>
Demo: fiddle
otherwise use this
<ol>
<li></p>Something here...</p></p>Something more here...</p></p>Something something something</p> </li>
<li></p>Something else...</p></p>Something else here...</p></p>Something something something</p> </li>
</ol>
Upvotes: 1
Reputation: 66693
You can use the built-in numbered list in HTML. i.e. the <ol>
tag:
Demo: http://jsfiddle.net/x9v2t/
Code:
<ol>
<li>Hello World. This is a line in this paragraph that can span mulitple lines. Hello World. This is a line in this paragraph that can span mulitple lines.</li>
<li>Hello World. This is a line in this paragraph that can span mulitple lines. Hello World. This is a line in this paragraph that can span mulitple lines.</li>
<li>Hello World. This is a line in this paragraph that can span mulitple lines. Hello World. This is a line in this paragraph that can span mulitple lines.</li>
</ol>
Upvotes: 2