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

enter image description here

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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

Sound is not coming out while implementing Text-to-speech in Android activity -