Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## blah
- Below is the contact page, the BR elements are there so new lines are introduced when CSS is off
- ## contact.php [html]
- <form id="contact-form" method="post" action="contact2.php">
- <fieldset>
- <legend>Personal information</legend>
- <label for="name">Name</label>
- <input type="text" name="name" id="name" />
- <br />
- <label for="email">Email Address</label>
- <input type="text" name="email" id="email" />
- <br />
- <label for="phonenumber">Phone Number</label>
- <input type="text" name="phonenumber" id="phonenumber" />
- <br />
- </fieldset>
- <fieldset id="comment-area">
- <legend>Comments</legend>
- <textarea name="comment"></textarea></p>
- </fieldset>
- <input type="submit" name="Submit" value="Submit">
- </form>
- ## CSS [ruby]
- display:block; will ensure the labels sit above the form inputs
- legend {
- font-weight : bold;
- color : #333;
- }
- !! label { display : block; }
- I have wrapped the comment text area in its own fieldset so that yo
Add Comment
Please, Sign In to add comment