View Single Post
Old 09-08-2012, 12:34 AM   PM User | #6
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
Code:
label {
     display: inline-block;
     width: 100px;
}
Code:
<form>
     <fieldset>
          <legend>Personalia:</legend>
          <label>Name:</label> <input type="text" /><br />
          <label>Email:</label> <input type="text" /><br />
          <label>Date of birth:</label> <input type="text" />
     </fieldset>
</form>
EDIT: Just fixed a <label> tag, I was missing a "/". It is working correctly now.

Last edited by Sammy12; 09-08-2012 at 12:37 AM..
Sammy12 is offline   Reply With Quote
Users who have thanked Sammy12 for this post:
lesponce (09-08-2012)