<asp:HyperLink ans css color

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top