Solved

CSS in .net

Posted on 2004-08-17
3
2,508 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

622 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