Changing font color of link text

css, html

Solution

Can't you simply apply a style attribute like this? You must be using color property for `ul` or `li` element which won't apply `color` to `<a>` element, instead try this

<a href="path" style="color: #ff0000;">Stuff goes here</a>

Or if you change your mind and want to go for CSS than use this

ul.unstyled li a {
   color: #ff0000;
}

Or inherit the parent color

Demo

Problem

I have the following bit of HTML: ``` <ul class="unstyled" style="font-size:16px;"> {% if stuff %} {% for eachthing in stuff %} <li> <a href = "path"> Stuff goes here </a> </li> {% endfor %} {% else %} </ul> ``` Basically I would like to change the text color of the link within the template rather than in the CSS. How would I do this? I have tried adding a 'color' property to both the element as well as the element but to no avail.

Original source