html - adding margin-left to a block of text -


i trying use margin-left:20px; nudge bullet point list have in middle of webpage inwards 20px.

<li>• service level agreements match needs next business day response 2 hour fix</li> <li>• 24x7x365 service coverage</li> <li>• dedicated client management , uk based service des</li> <li>• network of qualified engineers , strategic stock locations</li> 

i'm doing adding style li, works using <li> in navbar @ top of website, styling li nudges navbar on 20px.

i tried use <span>...</span> around list , add style nudges top line , not rest.

i didn't want add class or id every <li> kind of defeats point of having way nudge lists over.

thanks in advance

use class specificity selector achieve this.

for instance,

<ul class="justbullets"> <li>service level agreements match needs next business day response 2 hour fix</li> <li>24x7x365 service coverage</li> <li>dedicated client management , uk based service des</li> <li>network of qualified engineers , strategic stock locations</li> </ul> 

the css:

.justbullets li{margin-left:20px;} 

hope helps.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -