Tag Archives: CSS

How to remove anchor/( html link) text underline on hover

To remove html underline style of the anchor is quite easy put this in style or css class file.

a:hover {

text-decoration: none;



Adding css class to control from Codebehind

Adding css class to dynamically generated ( DIV) HtmlGenericControl or for other controls

HtmlGenericControl dvbuttons = new HtmlGenericControl(“dvbuttons”);

dvbuttons.Attributes.Add(“class”, “newClass”);