Posted on: 12/9/2014 2:28:58 PM | Views : 472

I am having an unusual issue overidding some CSS. I need to make an Error Message bold red and I simply cannot get it to style. It is a literal within a div. I have tried inline and using the !important flag but to no effect.
<style type="text/css"> 
.LabelStyle { color:Red !important; } </style>
<div class="LabelStyle"> <asp:Literal ID="lblErrorMessage" runat="server"></asp:Literal> </div>
lblErrorMessage.Text = "<span style='color:red'>" + returnMessage + "</span>";



Go to the complete details ...