I want to add space before bullet points . My requirement like
This is paragraph1
- The text line one
- The text line two
This is paragraph 2
- The text line one
- The text line two
Any help will be appreciated.
I want to add space before bullet points . My requirement like
This is paragraph1
This is paragraph 2
Any help will be appreciated.
CSS:
li {
margin-left:1em;
}
You can set CSS
to li
as per your requirement.
HTML Code
<p>This is my paragraph1</p>
<ul><li> List One </li>
<li> List Two </li>
<li> List Three </li>
</ul>
<p>This is my paragraph 2</p>
<ul><li> List One </li>
<li> List Two </li>
<li> List Three </li>
</ul>
CSS
li {
margin-left:1em;
}
apply margin-left to ul
Working Fiddle example is here:
Code:
[http://jsfiddle.net/Sharan_thethy/MNaUn/][1]
I hope this will help you
There is spacing before bullet points by default. If there isn’t, you are probably using a “Reset CSS” of some kind.
To set the spacing to a desired value, set padding-left
and margin-left
of both ul
and li
elements to zero and then set one of them to the desired value.