Solved

CSS in .net

Posted on 2004-08-17
3
2,474 Views
Last Modified: 2010-03-26
I want to use my own css in a .net application. I have a css file that I use on my web site. The css file values are in between <style></style> tags in the file that I use on the web site. I get the squiggly under the < in the beginning tag that says " unexpected character sequence, expected a selector for the style rule" Also .net creates a styles.css, but I'm not sure where .net refers to this file.
0
Comment
Question by:jamesh1031
3 Comments
 
LVL 10

Accepted Solution

by:
123654789987 earned 500 total points
ID: 11840428
U can refer a CSS in a web page by the following tag

<LINK REL="stylesheet" HREF="http://www.mywebsite.com/stylesheet.css" TYPE="text/css">

In the href u can specify the path of the stylesheet.
 
For more details on the syntax of CSS u can refer the following site:

http://css.somepeople.net/
0
 

Expert Comment

by:torrid333
ID: 28694475
I'm getting the same error with this syntax:

<style type="text/css">
<!--
.style2 {font-size: 12px; font-family: Verdana, Arial, Helvetica, sans-serif;}
-->
</style>

It barfs on the begining of the comment beginning <!
0
 

Author Comment

by:jamesh1031
ID: 28694893
Wow, its been almost 6 years since this was posted.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question