<asp:HyperLink ans css color

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

hi

asp.net 3.5

I want to apply these css settings to a asp:HyperLink:
a:link {color: #000000; text-decoration: underline; }
a:active {color: #0000ff; text-decoration: underline; }
a:visited {color: #008000; text-decoration: underline; }
a:hover {color: #ff0000; text-decoration: none; }

I'm not sure how to do it, you got any tips?
 
hi

asp.net 3.5

I want to apply these css settings to a asp:HyperLink:
a:link {color: #000000; text-decoration: underline; }
a:active {color: #0000ff; text-decoration: underline; }
a:visited {color: #008000; text-decoration: underline; }
a:hover {color: #ff0000; text-decoration: none; }

I'm not sure how to do it, you got any tips?

Add style definition within <head> or css

<html>
<head>
<style type="text/css">
a:link {color: #000000; text-decoration: underline; }
a:active {color: #0000ff; text-decoration: underline; }
a:visited {color: #008000; text-decoration: underline; }
a:hover {color: #ff0000; text-decoration: none; }
</style>
</head>

then this should work

To apply style to a specific link use CssClass property
http://msdn.microsoft.com/en-us/library/h4kete56(VS.71).aspx
 
Back
Top