Click here to Skip to main content
15,897,151 members
Articles / Programming Languages / C#

Simple CSS Parser

Rate me:
Please Sign up or sign in to vote.
4.94/5 (102 votes)
3 Sep 2011CPOL14 min read 662.2K   9.1K   207  
An article about a simple CSS parser
table tr td {
	color: Red;
}
body {
	margin: 0px;
}
.TitleBar {
	background-repeat: repeat-x;
	/*background-image: url(TopTile.png);*/
	background-image: url(Tile-Flat.png);
}
.tab_on {
	background-color: white;
	border-left: 1px solid #AE8D44;
	border-top: 1px solid #AE8D44;
	border-right: 1px solid #AE8D44;
	/*border-bottom: 1px solid white;*/
	width: 80px;
	text-align: center;
	font-family: Arial;
	font-size: 9pt;
}
.tab_off {
	background-color: #DFB557 /*silver*/;
	border-left: 1px solid #AE8D44;
	border-top: 1px solid #AE8D44;
	border-right: 1px solid #AE8D44;
	width: 80px;
	text-align: center;
	font-family: Arial;
	font-size: 9pt;
	cursor: pointer;
}
.tab_hover {
	background-color: #ECDFB2 /*#FCE3AB*/ /*#DCDCDC*/;
	border-left: 1px solid #AE8D44;
	border-top: 1px solid #AE8D44;
	border-right: 1px solid #AE8D44;
	width: 80px;
	text-align: center;
	font-family: Arial;
	font-size: 9pt;
	cursor: pointer;
}
a.Tabbed:link    { color: #997B3B; font-family: Verdana; font-size: 10pt; text-decoration: none; }
a.Tabbed:active  { color: #EA9E00; font-family: Verdana; font-size: 10pt; text-decoration: none; }
a.Tabbed:visited { color: #997B3B; font-family: Verdana; font-size: 10pt; text-decoration: none; } /*#B9964D*/
a.Tabbed:hover   { color: #5A471F; font-family: Verdana; font-size: 10pt; text-decoration: none; }
td.topbox {
	border-bottom: 1px solid #AE8D44;
	border-right: 1px solid #AE8D44;
}
.tabbox {
		background-color: #ECDFB2;
		border: 1px solid #AE8D44;
		width: 82px;
		text-align: center;
		font-family: Arial;
		font-size: 9pt;
		cursor: pointer;
}
td.tabs {
	position: absolute;
	top: 54px; /* 54px for 10pt, 55px for 9pt */
	right: 1px;
}

td.menutop {
	color: DarkGreen;
	font-size: 10pt;
	font-weight: bold;
	background-color: #DDEEDD;
	border: DarkGreen 1px solid;
}
a:link		{ font-size: 9pt; color: #4f914f; font-family: verdana; text-decoration: none; }
a:active	{ font-size: 9pt; color: #69ad69; font-family: verdana; text-decoration: none; }
a:visited	{ font-size: 9pt; color: #4f914f; font-family: verdana; text-decoration: none; }
a:hover		{ font-size: 9pt; color: #3c6c3c; font-family: verdana; text-decoration: none; }

.BrownBorder {
	border: solid 1px #AE8D44;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) BoneSoft Software
United States United States
I've been in software development for more than a decade now. Originally with ASP 2.0 and VB6. I worked in Japan for a year doing Java. And have been with C# ever since.

In 2005 I founded BoneSoft Software where I sell a small number of developer tools.
This is a Organisation (No members)


Comments and Discussions