locked
how to have the validation text appear on a separate line RRS feed

  • Question

  • User1457412228 posted

    Hi,

    I am writing a question I could probably eventually figure out but I have been several days trying to figure out validation.

    If I have a form inside a page in Core 2.2 and I have validation, what do I do to have the validation appear on its own line.

    Currently it is sharing line space with the input, and since it is a modal form, it looks bad.

    here is my previous question where I attempted to have it be on separate lines and instead I broke it.

    https://forums.asp.net/post/6270223.aspx

    Once I changed the div tags to span tags, it now works as expected, except the error message is on the same row.

    Since it is all enclosed on a modal, there is no room for this.

    Saturday, July 13, 2019 8:54 PM

Answers

  • User1034446946 posted

    https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/validation?view=aspnetcore-2.2

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 13, 2019 10:08 PM