I am having a problem sorting this one out.
here's my html
<form>
<p><label for="comp-name">Name:</label>
<input type="text" name="comp-name"></input>
</p>
<p>
<label for="company-address">Address:</label>
<textarea name="company-address"></textarea>
</p>
<p>
<label for="postcode">Postcode:</label>
<input type="text" name="postcode"></input>
</p>
<p>
<label for="phone">Phone Number:</label>
<input type="text" name="phone"></input>
</p>
<p>
<label for="email">Email:</label>
<input type="text" name="email"></input>
</p>
</form>
here is what I want the form to look like:
having hard time figuring out how to place the label on the top-left part of the input/textarea.
If I understand correctly, a simple:
label {
vertical-align: top;
}
should give you the results you want.
Fiddle: http://jsfiddle.net/N7e67/2/