Mike Eghtebas
asked on
CSS troubleshooting
Question: How can I change my CSS to show YTD in red?
Thank you
<asp:Panel ID="optRollup" Class="optRollup" runat="server">
<asp:RadioButton ID="rdMonthly" runat="server" Text="Monthly" TabIndex="1" GroupName="optRollup"
enabled="false" />
<asp:RadioButton ID="rdYTD" Text="YTD" Checked="true" runat="server"
TabIndex="2" GroupName="optRollup" />  
</asp:Panel>
#optRollup, #Panel3
{
background-color:white;/*#cdc5bf; ,*/
border:solid 1px #808080;
margin:2px 0px auto 2px;
padding : 0px auto 2px auto;
background:transparent;
/* #2f4f4f;#cdc9c9;*/
display: inline;
color: white;
font-family:Tahoma;
font-size:10px;
}
#rdYTD
{
color:red;/*#cdc9c9;*/
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also use this, but its a bit of a bad habit
[id$="rdYTD"] {}
ASKER
Is [id$="rdYTD"] {} for php? Or, or it would work for asp.net as well?
No thats css
[id$="rdYTD"] {
color:red
}
ASKER
Hi Gary,
It is very nice alternate, but the following is not working for me for some reason.
[id$="rdYTD"]
{
color:red;
}
How can I correct this? Do you post under a new question?
Thanks,
Mike
It is very nice alternate, but the following is not working for me for some reason.
[id$="rdYTD"]
{
color:red;
}
How can I correct this? Do you post under a new question?
Thanks,
Mike
Should be working
Try
Try
[id*="rdYTD"]
{
color:red;
}
ASKER
No luck yet. Not working.
[id$="rdYTD"] {
color:red !important
}
Or [id*="rdYTD"]
{
color:red !important;
}
ASKER
Maybe I am doing something wrong. It didn't work.
I may later add a new question later. I will send you a link.
Thanks,
Mike
I may later add a new question later. I will send you a link.
Thanks,
Mike
ASKER