|
First, with blocks suck - don't use them. Bad coding style. The same goes for html tables when you're displaying anything but tabular data.
Next, let's ditch the .Style.Add and instead give it a CSS class. There's even a property for most if not all ASP.NET server controls called CssClass, you would just assign that. In your CSS file, put :hover after the name of the class and add the styles there. That's in addition to the normal definition, not replacing it.
|