Search code examples
semantic-uiformvalidation.ioerror-messages-for

error label for the inputbox doesn't point to the left but upwards in semantic ui


i have linked copy code here please find the result

https://codepen.io/manikandanpa/pen/RyeEpX?editors=1010


Solution

  • You need to move your .ui.labeled.input into a div with .fluid.field

    <form class="ui form">
      <div class="fluid field">
        <div class="ui labeled input">
          <div class="ui label">
            Example
          </div>
          <input class="ui input " type="text" name="example" required>
        </div>
      </div>
    </form>
    

    https://jsfiddle.net/4x8d56sw/