I have HTML code like this:
<tr>
<td align="left" valign="bottom" class="leftfooter"><a href="#">Customer Support</a> <a href="#" class="footerlink">About</a></td>
</tr>
How can I place one small red dot in front of the entire text? Kind of like
Edit
Just to clarify, I didn’t write this HTML. I just copied and pasted it to show what I’m working with. I realize that I should use an unordered list to do this same task instead of a table structure for this purpose for semantic reasons. If I can, I will see if I can modify this piece of the code to a more suitable one in the customer’s codebase.
I hadn’t noticed that you were using
tableelements, at first, so I’ll preface my existing answer with the strong suggestion to use an actualul, orol, element. Which conveys some form of meaning of the contents therein. Please consider screen-readers, or users with devices that access the data non-visually.Pretty easily:
html:
css:
JS Fiddle demo.
Explanation:
The reason for the
spanwithin thelielements is that the text-color of the ‘bullet’ (list-style-type: disc;) cannot be changed independently of the text of theliitself. Using thespanallows the text contained within to be of a differentcolorto the ‘bullet.’This is partially related to my own question: How to colour the
list-style-typeof aut-generated numbers?.However to answer the question as asked:
Using the following image:

The following css will work:
JS Fiddle demo.
I leave it entirely to you to find an actual red bullet image.