When I enter a text such as <p> Lorem ipsum .... </p> , I can restrict the number of lines. But when I write a code like <p> @Model.Value("Text") </p> this css code does not work and the whole paragraph appears.
Why my css code does not work and what should I do.
-webkit-line-clamp does not working when I add Model.Value("text") to <p> tag
I have css code like this to restrict the number of lines of the paragraph.
When I enter a text such as
<p> Lorem ipsum .... </p>
, I can restrict the number of lines. But when I write a code like<p> @Model.Value("Text") </p>
this css code does not work and the whole paragraph appears.Why my css code does not work and what should I do.
is working on a reply...