﻿/*===========================================================================*

	written by mnelson@rrc.mb.ca
		
	rrcforms.css
	
	this stylesheet establishes the 
	styles for FORMS throughout the site

*===========================================================================*/
#rrcforms2 form {
	font:100% arial,helvetica,sans-serif;
	margin-left: 16px;
	padding-left:16px;
	padding-right:16px;
	padding-bottom:15px;
	min-width: 580px;
	max-width: 580px;
	width: 580px;
	background-color: #f4f4f4;
	background-repeat:repeat-y;
}

#rrcforms2 form fieldset {
  /* clear: both; note that this clear causes inputs to break to left in ie5.x mac, commented out */
  color: #666;
  border-width: 2px;
  border-style: groove; 
  padding: 10px;        /* padding in fieldset support spotty in IE */
  margin: 0;
  width:560px;
}

#rrcforms2 form fieldset legend {
	font-size:1.1em; /* bump up legend font size, not too large or it'll overwrite border on left */
                       /* be careful with padding, it'll shift the nice offset on top of border  */
	font-weight:bold;
	color:#333;
}

#rrcforms2 form label { 
	display: block;  /* block float the labels to left column, set a width */
	float: left; 
	width: 180px; 
	padding: 0; 
	margin: 5px 0 0; /* set top margin same as form input - textarea etc. elements */
	text-align: right; 
}

#rrcforms2 form input, form textarea, form select {
	display: inline; /* inline display must not be set or will hide submit buttons in IE 5x mac */
	width:auto;      /* set width of form elements to auto-size, otherwise watch for wrap on resize */
	margin:5px 0 0 10px ; /* set margin on left of form elements rather than right of
                              label aligns textarea better in IE */
}

#rrcforms2 form input#reset {
	margin-left:0px; /* set margin-left back to zero on reset button (set above) */
}

#rrcforms2 textarea { 
	overflow: auto; 
	width:260px;
	}

#rrcforms2 form small {
	display: block;
	margin: 0 0 5px 160px; /* instructions/comments left margin set to align w/ right column inputs */
	padding: 1px 3px;
	font-size: 88%;
}

#rrcforms2 label.required{font-weight:bold; color:#CC0000;} /* uses class instead of div, more efficient */

#rrcforms2 form br {
	clear:left; /* setting clear on inputs didn't work consistently, so brs added for degrade */
}



#rrcforms2 label.error { float: none; color: red; font-size:11px;font-weight:normal;vertical-align: top; margin-left:140px;margin-top:0px; }
#rrcforms2 p { clear: both; padding-bottom:10px;}
#rrcforms2 .submit { margin-left: 185px; }

