Search
 
SCRIPT & CODE EXAMPLE
 

CSS

putting label on top of input css

input, label {
    display:block;
}
Comment

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>
Comment

PREVIOUS NEXT
Code Example
Css :: how to make image same size as text css 
Css :: semibold css 
Css :: color code for dark green 
Css :: ionic ios remove button appearance 
Css :: unclickable button 
Css :: text underline 
Css :: slick arrow css 
Css :: how to make all buttons same size css 
Css :: secondline ellipsis 
Css :: remve arrow from input ype number 
Css :: add font css 
Css :: second scrollbar appears 
Css :: border color css 
Css :: underline css animation 
Css :: electron draggable 
Css :: using float item got out of parent flow how to fix 
Css :: how to horizontally center in css 
Css :: responsive flexbox in css 
Css :: center div scss 
Css :: css full grid span 
Css :: custom horizontal scrollbar css 
Css :: scroll bottom css 
Css :: css linear gradient 
Css :: video camera icon font awesome 
Css :: how to disable margin collapsing 
Css :: how to remove bullets from li 
Css :: css vw scrollbar 
Css :: css last item should be flex end 
Css :: align grid items with end 
Css :: box shadow css 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =