create css class from model value string asp net code example
Example: mvc dynamic css
<style>
div.col-md-4 {
background-color: @Model.BGColor;
text-decoration: @Model.TextDec;
border-style: @Model.BRDStyle;
border-width: @Model.BRDWidth;
}
</style>