Reputation: 9458
I have the following code:
<div class="extra-details">
<ul class="browse-product-usp">
<li>
<span class="text">
Dimension: 11x11 inch
</span>
</li>
<li>
<span class="text">
Paper Depth: 285 gsm
</span>
</li>
</ul>
</div>
This look in the browser as below:
My CSS is as below:
.text {
color:#333;
font-family: Helvetica, Arial, sans-serif;
}
when I put following code:
ul{list-style-image:url(../img/arrow.png);}
It distorts my text from the iimage line.Please help
I want the arrows and the text in the same line.
Upvotes: 0
Views: 2264
Reputation: 32182
Used to background-image
in your li
tag
ul li {
background:url("http://cdn1.iconfinder.com/data/icons/silk2/resultset_next.png") no-repeat 0 3px;
line-height:25px;
padding-left:25px;
}
Upvotes: -1
Reputation: 76
You can use background: url("image.gif") no-repeat scroll 0px 5px transparent;
instead of list-style-image
Upvotes: 0