Log in

View Full Version : mail form script



drosster
03-25-2012, 10:02 PM
Hello. When creating a mail form what it the proper code to add space between the label name and the text field, and what is the code to a space between text field a sitting above text field B?

Nile
03-25-2012, 10:19 PM
To insert a space between the label and the text field, you can either literally just put a space, or use &nbsp; As for line breaking, use the <br> element.



<form>

<!-- Form input fields -->

<label for="mailSubject">Subject:&nbsp;</label><input type="text" name="subject" id="mailSubject">​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​<br>
<textarea name="body"></textarea>

</form>​

drosster
03-28-2012, 02:57 AM
That did the trick, thank you!

Nile
03-28-2012, 02:59 AM
No problem, I'm glad to help :D

In an effort to keep things organized, you have the option to set a thread to resolved when an issue is fixed. To make the status of the thread resolved:
1. Go to your first post
2. Edit your first post
3. Click "Go Advanced"
4. In the dropdown next to the title, select "RESOLVED"