Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CSS and ASP:LinkButton woes
Message
From
05/02/2007 17:10:50
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
CSS and ASP:LinkButton woes
Miscellaneous
Thread ID:
01192606
Message ID:
01192606
Views:
52
Hello World,
I am having some major heartburn with linkbuttons. The problem is that I want the disabled linkbuttons to display with black text *NOT* grey. I know linkbuttons are rendered as anchor tags so I wrote my CSS like so:
a[Disabled] {
  	color: #FF0000;
	font-weight: bold;
	text-decoration: none;
    FONT-SIZE: 22px;
}
The color attribute is the only attribute that doesn't work. It is simply disregarded by the browser. I set the size to 22 to be sure It was "Listening" ... The bold and size display correctly but not the color.

I also tried programatically setting the properties in code behind with the same results... Grey text I have tested this with inline code on a page with one disabled linkbutton control.

My humble thanks in advance,
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Next
Reply
Map
View

Click here to load this message in the networking platform