Answers for "how to put the input box and the label on top of input"

CSS
2

how to put the input box and the label on top of input

input, label {
    display:block;
}
Posted by: Guest on May-21-2020
0

how to put the input box and the label on top of input

<form name="message" method="post">
    <section>

  <div style="float:left;margin-right:20px;">
    <label for="name">Name</label>
    <input id="name" type="text" value="" name="name">
  </div>

  <div style="float:left;">
    <label for="email">Email</label>
    <input id="email" type="text" value="" name="email">
  </div>

  <br style="clear:both;" />

    </section>

    <section>

    <label for="subject">Subject</label>
    <input id="subject" type="text" value="" name="subject">
    <label for="message">Message</label>
    <input id="message" type="text" value="" name="message">

    </section>
</form>
Posted by: Guest on September-23-2021

Code answers related to "how to put the input box and the label on top of input"

Browse Popular Code Answers by Language