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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

CSS not compiling in Visual Studio

Hey,

Is there a way to exclude files from compiling in Visual Studio?

I'm using visual studio C#...  I'm running into problems with CSS files which contain tags which are causing errors when compiling.

As you see in the code sample below there is a # in from on Position and Tab which the compiler doesn't like.  I have tried not using the #, but then the divs are not aligning properly.

Thanks!
* html #footer {
	height:42px; 
	he\ight:40px;  /* THE \ (SLASH) IS NOT COMPILING */
}
 
#headerContentLeft {#position: relative; #top: -50%; float:left;}  /* THE # IN FRONT OF POSITION AND TAB ARE CAUSING PROBLEMS */

Open in new window

0
kasiencja
Asked:
kasiencja
  • 2
1 Solution
 
daveamourCommented:
Can you show the entire file that this is in?
0
 
Bob LearnedCommented:
That shouldn't be a compiler error that would stop the application.  That should just be a warning when the file is open in the designer.  You should be able to ignore those errors, as long as the CSS entries are valid.
0
 
kasiencjaAuthor Commented:
The compilier was complaining about css and color "lightblue" only when other errors where present.  I just had to go to the bottom of the error list and see what the real problem was.
0
 
Bob LearnedCommented:
"lightblue" is an unknown color by the HTML parser, but is a valid attribute for CSS.  To avoid the warning, you can use HTML colors (i.e. #ff78a0).
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now