How do I change the color of the text when someone fails validation?
IE: This field cannot be blank, etc?
IE: This field cannot be blank, etc?
<div style="opacity: 0.999999;" id="advice-validate-selection-field7" class="validation-advice">Please make a selection</div>
and the css that goes with it.validation-advice {
background-color:#FF3300;
color:#FFFFFF;
font-weight:bold;
margin:5px 0pt;
padding:5px;
}
Bob<br><br>Post edited by: GreyHead, at: 2007/11/20 18:05
<style>
.validation-advice {
background-color:#FF3300;
color:#FFFFFF;
font-weight:bold;
margin:5px 0pt;
padding:5px;
}
</style>
Bob
<style type="text/css">
<!--
@import url(http:www.site.com/templates/css/forms.css);
-->
</style>
<style type="text/css">
<!--
@import url(../templates/css/forms.css);
-->
</style>
/* CSS Document */
.validation-advice {
background-color:#FF3300;
color:#FFFFFF;
font-weight:bold;
margin:5px 0pt;
padding:5px;
}
<head>
<style type="text/css">
<!--
@import url(http:www.site.com/templates/css/forms.css);
-->
</style>
</head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Logo Design Form</title>
<style type="text/css">
<!--
@import url(http://69.94.30.224/templates/bosnia1.0/css/forms.css);
-->
</style>
</head>
<body>
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>
<div align="left" class="heading">
Logo Design
<br />
<br />
</div>
<div align="left" class="subheading">
Project Information
<br />
</div>
<div class="details">
Project Title:
<input type="text" name="projtitle" size="40">
(Required)
<br clear="all" />
<br clear="all" />
Due Date:
<select name="month" id="month" size="1">
<option selected value="none">Select Month</option>
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="Jun">Jun</option>
<option value="Jul">Jul</option>
<option value="Aug">Aug</option>
<option value="Sep">Sep</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
<select name="day" id="day" size="1">
<option selected value="none">Select Day</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="year" id="year" size="1">
<option value="2008" selected="selected">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select>
(Required)
</div>
<br clear="all" />
<div class="field-label">
<p class="details">Are you uploading elements, such as photos?
<input type="radio" name="elem" value="Yes_elem" id="elemyes"> Yes
<input type="radio" name="elem" value="No_elem" id="elemno"> No (Required)
</p>
</div>
<br clear="all" />
<div class="details">
Name/Text to be used in logo:
<input type="text" name="logotext" size="60">
(Required)
<br clear="all" />
<br clear="all" />
Motto to be used:
<input type="text" name="mottotext" size="60">
(Required)
<br clear="all" />
<br clear="all" />
Please give us a description of what you would like. <br />
<textarea cols="50" name="logo_descrip" style="height: 63; width: 612" rows="4"></textarea>
<br clear="all" />
<br clear="all" />
Number of colors desired?
<input type="radio" name="colors" value="1 Color" id="color1">
<label id="color1" for="color1"> 1 </label>
<input type="radio" name="colors" value="2 Colors" id="color2">
<label id="color2" for="color2"> 2 </label>
<input type="radio" name="colors" value="3 Colors" id="color3">
<label id="color3" for="color3"> 3 </label>
<input type="radio" name="colors" value="Not Sure" id="colorns">
<label id="colorns" for="colorns"> Not Sure </label>
<br clear="all" />
<br clear="all" />
Please give us a brief description of the company. <br />
<textarea cols="50" name="comp_descrip" style="height: 63; width: 612" rows="4"></textarea>
<br clear="all" />
<br clear="all" />
Are there any logos in our portfolio or at a web site that are similar to what you are looking for? <br />
<textarea cols="50" name="examp_descrip" style="height: 63; width: 612" rows="4"></textarea>
</div>
<br clear="all" />
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>
Contact Information Required:
</legend>
<div class="details">
Company Name
<input type="text" name="comp_name" size="40">
<br />
Web Address
<input type="text" name="web_address" size="40">
<br />
Contact Name
<input type="text" name="contact_name" size="40">
<br />
Address
<input type="text" name="address" size="40">
<br />
City
<input type="text" name="city" size="40">
State
<input type="text" name="state" size="2">
Zip
<input type="text" name="zip" size="5">
<br />
Telephone
<input type="text" name="phone" size="10">
Fax
<input type="text" name="fax" size="10">
<br />
eMail Address
<input type="text" name="email" size="40">
</div>
</fieldset>
<br clear="all" />
<p class="details">
A company representative will contact you within 24 hours to discuss your requirements.
</p>
<br clear="all" />
<p>
<input type="submit" value="Send to GenoGraphix" name="Submit" style="font-style: italic; font-weight: bold">
<input type="reset" value="Reset (cancel form)" name="reset" style="font-size: 8pt; font-style: oblique">
</p>
</td>
</tr>
</table>
</body>
</html>
/* CSS Document */
.heading {
color:#000000;
font-weight: bold;
font-size: 24px;
}
.subheading {
color:#000000;
font-weight: bold;
font-size: 16px;
}
.details {
color:#000000;
font-weight: bold;
font-size: 16px;
float: left;
text-align: left;
margin-right: 0.5em;
padding: 10px 0px 0px 0px;
}
legend {
color:#000000;
background:#009EAE;
border: 1px solid #781351;
padding: 2px 6px;
}
fieldset {
border: 1px solid #781351;
width: 90%;
background-color:#E9FEFE;
}
select {
width: 8em;
text-align: left;
}
input {
color: #000000;
background: #7FEEF7;
border: 1px solid #781351;
}
.submit input {
color: #000;
background: #ffa20f;
border: 2px outset #d7b9c9;
background-color: ffa20f;
}
.validation-advice {
background-color:#FF3300;
color:#FFFFFF;
font-weight:bold;
margin:5px 0pt;
padding:5px;
}
<style type="text/css">
<!--
@import url(../templates/bosnia1.0/css/forms.css);
-->
</style>
<table border="0" cellpadding="3" cellspacing="0">
<tr>
<td>
<div align="left" class="heading">
Logo Design
<br />
<br />
</div>
<div align="left" class="subheading">
Project Information
<br />
</div>
<div class="details">
Project Title:
<input type="text" name="projtitle" size="40">
(Required)
<br clear="all" />
<br clear="all" />
Due Date:
<select name="month" id="month" size="1">
<option selected value="none">Select Month</option>
<option value="Jan">Jan</option>
<option value="Feb">Feb</option>
<option value="Mar">Mar</option>
<option value="Apr">Apr</option>
<option value="May">May</option>
<option value="Jun">Jun</option>
<option value="Jul">Jul</option>
<option value="Aug">Aug</option>
<option value="Sep">Sep</option>
<option value="Oct">Oct</option>
<option value="Nov">Nov</option>
<option value="Dec">Dec</option>
</select>
<select name="day" id="day" size="1">
<option selected value="none">Select Day</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="year" id="year" size="1">
<option value="2008" selected="selected">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
</select>
(Required)
</div>
<br clear="all" />
<div class="field-label">
<p class="details">Are you uploading elements, such as photos?
<input type="radio" name="elem" value="Yes_elem" id="elemyes"> Yes
<input type="radio" name="elem" value="No_elem" id="elemno"> No (Required)
</p>
</div>
<br clear="all" />
<div class="details">
Name/Text to be used in logo:
<input type="text" name="logotext" size="60">
(Required)
<br clear="all" />
<br clear="all" />
Motto to be used:
<input type="text" name="mottotext" size="60">
(Required)
<br clear="all" />
<br clear="all" />
Please give us a description of what you would like. <br />
<textarea cols="50" name="logo_descrip" style="height: 63; width: 612" rows="4"></textarea>
<br clear="all" />
<br clear="all" />
Number of colors desired?
<input type="radio" name="colors" value="1 Color" id="color1">
<label id="color1" for="color1"> 1 </label>
<input type="radio" name="colors" value="2 Colors" id="color2">
<label id="color2" for="color2"> 2 </label>
<input type="radio" name="colors" value="3 Colors" id="color3">
<label id="color3" for="color3"> 3 </label>
<input type="radio" name="colors" value="Not Sure" id="colorns">
<label id="colorns" for="colorns"> Not Sure </label>
<br clear="all" />
<br clear="all" />
Please give us a brief description of the company. <br />
<textarea cols="50" name="comp_descrip" style="height: 63; width: 612" rows="4"></textarea>
<br clear="all" />
<br clear="all" />
Are there any logos in our portfolio or at a web site that are similar to what you are looking for? <br />
<textarea cols="50" name="examp_descrip" style="height: 63; width: 612" rows="4"></textarea>
</div>
<br clear="all" />
</td>
</tr>
<tr>
<td>
<fieldset>
<legend>
Contact Information Required:
</legend>
<div class="details">
Company Name
<input type="text" name="comp_name" size="40">
<br />
Web Address
<input type="text" name="web_address" size="40">
<br />
Contact Name
<input type="text" name="contact_name" size="40">
<br />
Address
<input type="text" name="address" size="40">
<br />
City
<input type="text" name="city" size="40">
State
<input type="text" name="state" size="2">
Zip
<input type="text" name="zip" size="5">
<br />
Telephone
<input type="text" name="phone" size="10">
Fax
<input type="text" name="fax" size="10">
<br />
eMail Address
<input type="text" name="email" size="40">
</div>
</fieldset>
<br clear="all" />
<p class="details">
A company representative will contact you within 24 hours to discuss your requirements.
</p>
<br clear="all" />
<p>
<input type="submit" value="Send to GenoGraphix" name="Submit" style="font-style: italic; font-weight: bold">
<input type="reset" value="Reset (cancel form)" name="reset" style="font-size: 8pt; font-style: oblique">
</p>
</td>
</tr>
</table>
projtitle=Project Title
month=Month
day=Day
year=Year
elem=Uploads
logotext=Logo Text
mottotext=Motto
logo_descrip=Description of what you want
colors=Number of Colors
comp_descrip=Company Description
examp_descrip=Examples
comp_name=Company Name
web_address=Web URL
contact_name=Contact Name
address=Contact Address
city=Contact City
state=Contact State
zip=Contact Zip
phone=Contact Phone
fax=Contact Fax
email=Contact eMail
projtitle,logotext,mottotext,contact_name,phone,email
elemno
.validation-advice {
background-color:#FF3300;
color:#FFFFFF;
font-weight:bold;
margin:5px 0pt;
padding:5px;
}