Solved

CSS in .net

Posted on 2004-08-17
3
2,448 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now