Vikas Singh

Vikas Singh

  • 1.3k
  • 410
  • 14.9k

How to add multiple css by c# code.

May 18 2020 6:52 AM
Hello Sir i am trying to add css like this
"divacccontent.Style.Add("background-color", "#207945");"
 
but i want to add more than one css and i donn't want to repeate it  like 
"divacccontent.Style.Add("background-color", "#207945");"
"divacccontent.Style.Add("display", "block");" 
 
so how can i do.Please help

Answers (2)