Range positioning within li

ive got a list set up with a background image set to the left of each line of text although they don't seem to line up, I put a space around the text to try to move the text, but it didn't seem to work

heres im code using ..

HTML

<ul class="price-features">
<li><span>One page website with contact form</span></li>
<li><span>Social Media Integration</span></li>
<li><span>One year hosting + Domain registration</span></li>
</ul>

CSS

 .price-features{
margin-top:30px;
 }

 .price-features li{
background-image:url(/images/prices/orange-arrow.png);
background-repeat:no-repeat;
background-position:left;
padding-left:15px;
height:30px;
border-bottom:#999 1px solid;
background-color:#996;
 }

 .price-features li span{
  padding-top:5px;
 }

http://i.stack.imgur.com/rV1LM.png

+5
source share
1 answer

Filling affects block level elements only. You need to either change yours spanto a block level element, or override the default value displayas blockor inline-block.

.price-features li span{
  display: block;
  padding-top:5px;
}
+6
source

All Articles