Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am woking on a school project in C#. I have a section where i have a HTML code containg text and CSS tags, the text properties(as font color...) is changed occurding to the CSS tag values.
I want to give the user an option to enter new values in to the css file.
How do i do that???

Thanks,
Plony
Posted

There are many ways to do this, ranging from the simple to the complex. Possibly the simplest way for you right now would be to have a template CSS file with placeholders for the values that can change, and then replace those values based on the user selection - this CSS file would then be written over the top of the current one.
 
Share this answer
 
I understand that, but my question is how??
How do i rewrite a CSS file in specific places? according to USER inputs???
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900