Click here to Skip to main content
15,906,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
I  done one css coding and i linked in asp.net within <head></head> tag but not working.my coding below.please help me.i saved that file name in hyper.css

.link
{color:red;}
.link:hover
{color:blue;}


Asp.net:
<head>
<link href="hyper.css" rel="stylesheet" style="text/css">

<hyperlink id="link"></hyperlink>
</head>
Posted

1 solution

you have write .link in the css file which is a class , but on your html you have apply it like ID and not by class, add class property to your hyperlink. it should work.


also check if your css file is in the same directory of your page. sometime it happens that page do not able to find the file ref if the path is incorrect.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900