asp.net – How can i merge css value and text in razor?


Currently i use

<img style="width:@Model.Width; height:@Model.Height"/>

for setting the style by my model.
Unfortunately this produces invalid html markup since px is missing

<img style="width:427; height:640">

How can i combine px in razor?

I have tried with no success

<img style="width:@Model.Widthpx; height:@Model.Heightpx"/>

Becides that, how could i also apply !important to these properties?