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 :: make blinking cursor disappear css 
Css :: remove site title squarespace 
Css :: GET /style.css HTTP/1.1" 404 
Css :: hover effect on sibling element tailwind 
Css :: html button scale to fit text 
Css :: cmd hash file 
Css :: css invert text color 
Css :: css grid auto resize on mobile 
Css :: sass each index 
Css :: css underline 
Css :: align div to center of screen 
Css :: how to change paragraph text color to orange - css 
Css :: div centre 
Css :: css grid minmax function 
Css :: javascript read me text 
Css :: css not clickable 
Css :: change style of ordered list numbers css 
Css :: texting getting out of box css 
Css :: text in centre table css 
Css :: circle button css 
Css :: css put span on new line 
Css :: how to give text two colors in css 
Css :: how to make border around text in html 
Css :: set margin to none inside print 
Css :: soup css selector 
Css :: how to remove text highlight on double click 
Css :: css3 background image curve 
Css :: how to make multiple borders using box shadow in css 
Css :: how to justify text in css 
Css :: gap css flex 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =