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

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,735 questions
{count} votes

Your answer

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