Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS in .net

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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