kingr
August 2, 2010, 12:47pm
1
Hi Guys,
I’m using a background images for my li’s, all is working well, but when the content of the li goes to next line the horizontal alignment of li image goes out and the li sits in the centre of the content.
I want the li to align to the top.
Here is my code
.content_bullets ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.content_bullets li {
list-style: none;
background-image: url(http://kurt.sybaweb.co.za/images/stories/images/li.gif);
background-repeat: no-repeat;
background-position: 0px;
padding-left: 10px;
}
green boxes indicate problem li’s.
kingr
August 2, 2010, 2:58pm
3
background-position: top;
tried above, no change in li display.
kingr:
Hi Guys,
I’m using a background images for my li’s, all is working well, but when the content of the li goes to next line the horizontal alignment of li image goes out and the li sits in the centre of the content.
I want the li to align to the top.
Here is my code
.content_bullets ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.content_bullets li {
list-style: none;
background-image: url(http://kurt.sybaweb.co.za/images/stories/images/li.gif);
background-repeat: no-repeat;
background-position: 0px;
padding-left: 10px;
}
green boxes indicate problem li’s.
Why not align the background to the top?