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
Post a Comment