html - Form Inputs & Labels in separate rows? -


i have form:

<form action="thankyou.php" method="post">   <label>name:</label>   <input class="contakt-input" type="text" name="firstname"/>    <label for="">e-mail</label>   <input class="contakt-input" type="text" name="secondname"/> </form> 

and have elements underneath another, is, have this:

name:
[field]
e-mail:
[field]

but right now, right next each other - how fix this?

add following css

 label { display:block } 

Comments