Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CSS in .net

Posted on 2004-08-17
3
Medium Priority
?
2,525 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 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