﻿/* tyyli.css - Ruokatoimittajat Ry -sivujen tyylisäännöt */
body {
	behavior: url("csshover3.htc");
	font: 100% Arial, Verdana, Helvetica, sans-serif;
	font-size: 12px;
	background: #FFFFFF url(images/nav.gif) no-repeat;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000;
	margin-top: 30px;
}
a.type1:link 
{
   font-family: Arial, Verdana, Helvetica, sans-serif;
   font-size: 12px;
   color:#cc0066; 
   text-decoration: none;
}

a.type1:visited 
{
	font-family: Arial, Verdana, Helvetica, sans-serif;
	font-size: 12px;
	color:#cc0066;
	text-decoration: none;
}
a.type1:active  
{
   font-family: Arial, Verdana, Helvetica, sans-serif;
   font-size: 12px;
   color:#cc0066; 
   text-decoration: none;
}
a.type1:hover   
{
   font-family: Arial, Verdana, Helvetica, sans-serif;
   font-size: 12px;
   color:#cc0066; 
   text-decoration: underline;
}

a.navlink    
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   font-weight:bold;
   color:#FFFFFF; 
   text-decoration:none;
}
a.navlink:hover  
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   font-weight:bold;
   color:#999999; 
   text-decoration:none;
}
a.navlink2    
{
   display: block;
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   font-weight:normal;
   color:#060; 
   text-decoration:none;
   padding: 0.2em 5px;
}
a.navlink2:hover  
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   font-weight:normal;
   color:#999999; 
   text-decoration:none;
   padding: 0.2em 5px;
}
a.typefooterlink    
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   font-weight:bold;
   color:#FFFFFF; 
   text-decoration:none;
   margin-left: 15px;
}
a.typefooterlink:hover  
{
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
   font-weight:bold;
   color:#efccdf; 
   text-decoration:none;
   margin-left: 15px;
}
ul.nav { /* all lists */
  padding: 0;
  margin: 0;
  list-style: none;
  width: 780px;
  background-color: #b20860;
  }

  /* Now we need to transform the first-level list into a horizontal menu bar. */
  /* There are a number of methods to do this, discussed in detail elsewhere. */
  /*We could display the list-items inline (display: inline), */
  /*but for this example, we are going to float them to the left. */
li.nav { /* all list items */
  float: left;
  position: relative;
  width: 9em;
  height: 1.1em;
  top: 0px;
  margin-left: 0px;
  text-align: left;
  padding: 0 0 0 1.2em;
  cursor: default;
  background-color: #b20860;
  border: 0px;
  border-width: 0px 0;

  }
  /* The position has been set to relative because we want the position of  */
  /* the second-level, nested lists to be relative to the first-level list items and  */
  /* the width has been set to space it out a bit. The dropdown menu is coming together. */

  /* The next step is to tackle the second-level lists that will be the dropdowns themselves: */
li.nav ul {  /* second-level lists */
  display: none;
  position: absolute; 
  width: 11em;
  top: 0px;
  left: 0px;
  font-weight: normal;
  background: url(nav.gif) bottom left no-repeat;
  background-color: transparent;
  padding: 0em 0em 0em 0em;
  border-left: solid 0px #b20860;
  border-right: solid 1px #b20860;
  border-bottom: solid 0px #b20860;
  }
  /* This positions the second-level lists absolutely (pulling them out of the flow of HTML */
  /* into a world all of their own) and sets their initial state to not be displayed. */

  /* If you substitute "display: none" with "display: block", you will see the need  */
  /* for the top and left properties in Internet Explorer, because without them,  */
  /* IE will align the second-level lists to the top right of their relative parent  */
  /* rather than the bottom left. Unfortunately, this IE fix will mess things up in  */
  /* browsers like Opera, so add the following CSS to reset the top and left properties  */
  /* on all but IE browsers: */
li.nav > ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
	top: auto;
	left: auto;
	}

li.nav li {
	display: block;
	float: none;
	background-color: transparent;
	border: 0;
}

li.nav:hover ul, li.over ul {
	display: block;
}

  /* And now, making the sucker work. To make a second-level list appear when its parent   */
  /* list item is “rolled over,” we simply need to add the following:  */
li.nav:hover ul { display: block; }
  /* Which says that any list that is nested in a list item that has the */
  /* cursor hovering over it should be displayed. */

  /* Finally, because the lists are floated left, the content underneath it needs to be  */
  /* set free of the floating by applying clear: left to it.  */
#mainContent {
clear: left;  /* lists nested under hovered list items */
   }

p.otsikko 
{
   font-family: Arial, Verdana, Helvetica, sans-serif;
   font-size: 15px;
   color:#b20860;
   font-weight:bold;
}
.oneColFixCtrHdr #container {
	width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
	background: #eeeeee;
	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
	border: 0px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColFixCtrHdr #header {
	background: #b20860; 
	padding: 0 0px 0 0px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.oneColFixCtrHdr #header h1 {
	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.oneColFixCtrHdr #mainContent {
	padding: 0 0px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
	background: #eeeeee;
}
.oneColFixCtrHdr #linkstring {
	padding: 0 0px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#b20860;
}
.oneColFixCtrHdr #footer {
	padding: 0 290px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#b20860;
}
.oneColFixCtrHdr #linkstring p {
	margin: 0 auto; /* zeroing the margins of the first element in the linkstring will avoid the possibility of margin collapse - a space between divs */
	padding: 8px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.oneColFixCtrHdr #linkstring ul {
	margin: 0 auto; /* zeroing the margins of the first element in the linkstring will avoid the possibility of margin collapse - a space between divs */
	padding: 0.8em 0px 1.8em 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.oneColFixCtrHdr #footer p {
	margin: 0 auto; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
.members {
	font: 100% Arial, Verdana, Helvetica, sans-serif;
	font-size: 13px;
	background: #eeeeee;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	color: #000000;
	margin-top: 30px;
	margin-left: 20px;
}
.oneColFixCtrHdr #jasenalue {
	padding: 10 5px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#b20860;
	margin-left: 170px;
}