I\'m using a background image for a that will be used as a button, but it\'s not fully shown; however, when write text then it shows.
I don\'t want text
Take a look at the following example:
ul#footernav li {
display:inline;
}
ul#footernav li a{
display:block;
width:155px;
text-indent:-9999px;
}
ul#footernav li.footerlocation a{
height:30px ;
background: url('images/image.jpg') bottom left no-repeat;
}
ul#footernav li.footerlocation a:hover{
height:30px ;
background: url(images/image.jpg) top left no-repeat;
}
May be help in this
.tab-content ul li{display: block;padding-left: 30px;background-image:url('images/blue-icon.png');background-repeat: no-repeat;background-position: 0 2px;margin-bottom: 10px;}
We can simply add the following css rule:
ul.check-list{
list-style-image: url(images/tick.jpg);
}
Your problem is in setting display to inline. If you want background and width, but you also need an inline-type list, set float: left.
Yes i have the same problem, i just removed css style display: inline
and add display: list-item; float:left;
my problem solved, hope this helps.
Thanks, Sankar B
set the width and height for the image