Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

CSS troubleshooting

User generated image
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" />&#160;&#160;
                    </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;*/
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike Eghtebas

ASKER

Thank you.
You can also use this, but its a bit of a bad habit

[id$="rdYTD"] {}

Open in new window

Is [id$="rdYTD"] {} for php? Or, or it would work for asp.net as well?
No thats css
[id$="rdYTD"] {
color:red
}

Open in new window

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
Should be working
Try

 [id*="rdYTD"]
  {
     color:red;
 }

Open in new window

No luck yet. Not working.
[id$="rdYTD"] {
color:red !important
}

Open in new window

Or
 [id*="rdYTD"]
  {
     color:red !important;
 }

Open in new window

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