Style Sheet Woes

T

tjonsek

I am familar with using style sheets in plain old HTML or ASP pages. I
thought I'd attempt the same in an asp.net app. I am finding something
wierd however.
I use this line in the <head> tag of the webform:
<LINK href="Styles.css" type="text/css" rel="stylesheet" runat="server"
/>

However, studio.net keeps taking the closing /> out of the line. The
style sheet works fine if I make sure the end '/' is there before
running the app. However, if I don't, then I get a message that the app
is looking for '</link>'. I tried entering that in as well, but I get a
message within the code saying that a closing </link> is not necessary.

So - I find myself manually typing in the closing slash each time I
test the app.

Am I missing something? Anybody successfully apply a style sheet to an
asp.net app and can give me pointers?
Thanks
 

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,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top