1
Answer

Cascading Style Sheets (CSS)

Photo of thomas.shokite

thomas.shokite

21y
2.4k
1
It it possible to use CSS with the html generated file used with C# and .Net? I was thinking of just embedding the html code into the existing file but can not get it to work. Example: Thank you Tom

Answers (1)

1
Photo of thomas.shokite
NA 4 0 21y
Well after playing with it for a while (trail & error) I did get it to work. I must admit that the documentation on this is extremely light. Here is how to use cascading style sheets, with C# and HTML. For each html file, within the HEAD tag, simply embed the LINK tag: main OR in Microsoft Visual Studio, for C#, just select, from the form design mode, Format-Document Styles... and select the style sheet. Of course you must first create a valid style sheet. Also, the tag names in your html files must match those found in your "*.css" file or it will not work. Tom