c# - How to change font size while using string.format in asp.net MVC -
referring question code
@(string.format("{0:dd mmmm yyyy hh:mm tt}", dr[1]))
how can change font size in
any highly appreciated
update
i have changed code @(string.format("<div style='font-size:10px'></div> {0:dd mmmm yyyy hh:mm tt}", dr[1]))
and got output
if you're trying statically change font size of output, wrap in html:
<span style="font-size:2em;">@(string.format("{0:dd mmmm yyyy hh:mm tt}", dr[1]))</span>
Comments
Post a Comment