Posted on: 9/16/2015 1:08:22 PM | Views : 757

hi guys..
My css file could have multiple font-family.. for an instance..
1) font-family: "Times New Roman", Times, serif; 2) font-family: "Comic Sans MS", cursive, sans-serif; 3) font-family: "Trebuchet MS", Helvetica, sans-serif;
and etc... I wanna standardize all my font type in css file.. How could I replace all the possible text (unknown font-family) to the following... font-family: "Courier New", Courier, monospace; Below is my coding for how to update KNOWN font-family...
Private Function ReplaceText() As Boolean Dim success As Boolean = True Try Dim text As String = File.ReadAllText(Server.MapPath("/webpages/css/style.css")) text = text.Replace("'Arial', Helvetica, sans-serif;", & ...

Go to the complete details ...