Problem with razor (.cshtml) tables. Format number simbol (€ or %) does not fit

SSRS-VS 46 Reputation points
2021-07-06T08:07:43.613+00:00

I have a table in my razor view (.cshtml). And I show the values of my model. The problem are some numbers, they do not fit completely and put the symbol below:

112121-imagen.png

The red color means that it's wrong and blue means correct. I want the symbol beside the number, not below. The format is given in the model: [DisplayFormat(DataFormatString = "{0:c}")] or [DisplayFormat(DataFormatString = "{0:P2}")]

I tried: .table td, .table th { font-size: 10.5px; white-space: nowrap; } to define my table css style: <table class="table">
But ir didn't work. Any solution?
Thanks

Developer technologies | ASP.NET | ASP.NET Core
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.