Is there a way to change the bullet point of an li
list to an image background? I have tried implementing it, but the image does not appear. Strangely, other images set as li
backgrounds are also not showing up. My HTML code is validated by W3Validator, so why isn't my HTML li
working?
How can I ensure that my li
displays as an image?
This is the code snippet I've used.
.heading{
font: bold 11px verdana;
color:#525252;
}
.altheading{
font: bold 14px verdana;
color:#C70C1F;
}
.bodies{
font: 10px verdana;
color:#303030;
}
.gheading{
font: 12px MS Reference Sans Serif, Tahoma;
color:#335784;
}
.gbodiesR{
font: 12px MS Reference Sans Serif, Tahoma;
color:#C70C1F;font-weight: 450;
}
.gbodiesG{
font: 12px MS Reference Sans Serif, Tahoma;
color:#006600;
font-weight: 450;
}
li.cross{
list-style-image: url('https://shivkumar.in.net/Cross.jpg'); padding: 0 0 0 10px;
}
li.tick{
list-style-image: url('https://shivkumar.in.net/tick.gif'); padding: 0 0 0 10px;
}
.phis_ico{
background-image:url("https://shivkumar.in.net/phish914.jpg");
background-repeat:no-repeat;
background-position:right;
opacity: 1;
filter: alpha(opacity=80);
}
<table bgcolor="#D4281E" align="center" width="100%" border="0"
cellpadding="0" cellspacing="2">
<tr>
<td>
<table bgcolor="#FFF" width="100%" border="02"
cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0"
align="center" width="100%" class="phis_ico">
<tr>
<td height="8" colspan="2"></td>
</tr>
<tr>
<td colspan="2" class="altheading" valign=
"center" align="center">
<u>Top Title</u>
</td>
</tr>
<tr>
<td height="10" colspan="2"></td>
</tr>
<tr>
<td colspan="2" class="gheading" valign=
"center" align="center">
<p align="justify" style="padding: 0 10px 0 10px;">
please help bepowbis my code
</p>
</td>
... (content continued) ...
</tr>
<tr>
<td height="28" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>