Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.63 KB | None | 0 0
  1.    <style type="text/css">
  2.     .error {
  3.         width: 13em; /* Ensures that the div won't exceed right padding of form */
  4.         margin-top: -1.5em;  /*Moves the div up to the same level as input */
  5.         margin-left: 11em;   /*Moves div to the right */
  6.         font-size: .9em;     /*Makes sure that the error div is smaller than input */
  7.     }
  8.    <form>
  9.    <label for="name">Name:</label><input id="name" type="textbox" />
  10.    <div class="error"><<< This field is required!</div>
  11.    <label for="numb">Phone:</label><input id="numb" type="textbox" />
  12.    <div class="error"><<< This field is required!</div>
  13.    </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement