Jump to content
Killersites Forums

Beginner - HELP with Spry Textarea Label !!


amandawhite.ajw
 Share

Recommended Posts

I am a beginner when it comes to websites and I am trying to set up a contact form on my website. Right now I don't have it set up with PHP (Next monster to tackle!) just with "mail to" and that is all working fine. The thing I am having trouble with is getting the comments label to line up with the top of my comments text area. Right now "comments" is positioned at the bottom of the text area. I am using spry for the form and buttons. If anyone can help me out I'd really appreciate it. I attached a picture of the site and included the source code below.

 

THANKS!!

 

SOURCE CODE:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Contact Consulting By Charles</title>

<style type="text/css">

body,td,th {

font-family: "Courier New", Courier, monospace;

font-size: 16px;

color: #5f6062;

}

body {

background-color: #F5F7F6;

text-align: center;

}

a:link {

color: #5f6062;

text-decoration: none;

}

a:visited {

text-decoration: none;

color: #5f6062;

}

a:hover {

text-decoration: none;

color: #333;

}

a:active {

text-decoration: none;

color: #5f6062;

}

#apDiv1 {

position:relative;

top:30px;

width:90%;

z-index:1;

background-color: #FFF;

text-align: left;

margin-right: auto;

margin-left: auto;

bottom: 30px;

padding-top: 20px;

padding-right: 15px;

padding-left: 15px;

}

.contact_text {

color: #000;

text-align: left;

}

.footer {

font-size: 11px;

text-align: center;

width: 100%;

margin-right: auto;

margin-left: auto;

position: absolute;

bottom: 0px;

}

.form {

text-align: center;

}

.contact_emailtext {

color: #5f6062;

}

</style>

<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>

<script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>

<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />

</head>

 

<body>

<p><a href="index.html"><img src="logo.jpg" alt="C By C" width="148" height="135" border="0" /></a>

<br/>

<br/>

<a href="clients.html">Clients</a>      ⋅      <a href="contact_2.html">Contact</a>      ⋅      <a href="careers.html">Careers</a><br/>

<div id="apDiv1">

<blockquote>

<p><span class="contact_text">01. PHONE</span><br />

    212.514.6236 </p>

<p><span class="contact_text">02. EMAIL</span><br />

    <a href="mailto:Contact@ConsultingByCharles.com">Contact@ConsultingByCharles.com</a> </p>

<p class="contact_text">03. FORM </p>

</blockquote>

<form action="MAILTO:contact@consultingbycharles.com" method="post" name="form3" id="form3">

<span id="sprytextfield3">

       

<label for="Name">Name</label>    

<input name="Name" type="text" id="Name" size="40" />

<span class="textfieldInvalidFormatMsg">Invalid format.</span></span>

<p><span id="sprytextfield4">

        <label for="email2">Email</label>   

<input name="email2" type="text" id="email2" size="40" />

<span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>

<p><span id="sprytextfield1">

        <label for="phone">Phone</label>   

<input name="phone" type="text" id="phone" size="40" />

<span class="textfieldInvalidFormatMsg">Invalid format.</span></span></p>

<p><span id="sprytextarea1">

        <label for="comments">Comments</label>

<textarea name="comments" id="comments" cols="60" rows="8"></textarea>

<span class="textareaMaxCharsMsg">Exceeded maximum number of characters.</span></span></p>

<p>

                                                

<input name="Reset" type="reset" class="contact_emailtext" id="Reset" value="Reset" />

<input name="Submit" type="submit" class="contact_emailtext" id="Submit" value="Submit" />

</p>

<p> </p>

</form>

</div>

<p> </p>

<p> </p>

<script type="text/javascript">

var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "custom", {validateOn:["blur"], isRequired:false});

var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "email", {validateOn:["blur"], isRequired:false});

var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "phone_number", {validateOn:["blur"], format:"phone_custom", isRequired:false});

var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur"], maxChars:600, isRequired:false});

</script>

</body>

</html>

post-28814-041891300 1294872201_thumb.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...