469,929 Members | 1,388 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

Use CSS via <LINK>

I found that I can use <LINK REL = "stylesheet" TYPE = "mime/type" HREF = "styles.css"> to use the CSS file of my project. But it seems it's not working. Is HREF = "styles.css" not sufficient or where is my mistake?

Thanks Sonija
Nov 18 '05 #1
3 992
"Sonija" wrote ...
I found that I can use <LINK REL = "stylesheet" TYPE = "mime/type" HREF =

"styles.css"> to use the CSS file of my project. But it seems it's not
working. Is HREF = "styles.css" not sufficient or where is my mistake?

Hi Sonija,

I use the same and it seems to work for me.

One thing I did find is that some of the controls - the server controls
mainly I think need cssClass="<your_class>" instead of just
class="<your_class>" etc...but other than that it seems to work...

I assume you have the TYPE= set to text/css in the actually page?

Regards

Rob
Nov 18 '05 #2
Is that the exact syntax you are using? Rather then "mime/type", try
"text/css".

"Sonija" <an*******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
I found that I can use <LINK REL = "stylesheet" TYPE = "mime/type" HREF = "styles.css"> to use the CSS file of my project. But it seems it's not
working. Is HREF = "styles.css" not sufficient or where is my mistake?
Thanks Sonija

Nov 18 '05 #3
Where is the file stored?

href="~/css/styles.css"

~ = application path (assuming usage on a control)

"Sonija" <an*******@discussions.microsoft.com> wrote in message
news:D8**********************************@microsof t.com...
I found that I can use <LINK REL = "stylesheet" TYPE = "mime/type" HREF = "styles.css"> to use the CSS file of my project. But it seems it's not
working. Is HREF = "styles.css" not sufficient or where is my mistake?
Thanks Sonija

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Francesco Moi | last post: by
2 posts views Thread by Hernán Castelo | last post: by
17 posts views Thread by The Numerator | last post: by
4 posts views Thread by John A Grandy | last post: by
1 post views Thread by Doug.Sheahan | last post: by
9 posts views Thread by Arancaytar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.