Small Background Problem

Started by JXEYES, July 24, 2011, 08:52:52 AM

JXEYES

So I'm a beginner with this web stuff but I'm putting this site together and at some point (while assembling a template) I must have messed something up because now the main content area has lost it's background color. I've searched but can't find out why. Any help?  :-\

<!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" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="../css/thrColLiq.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.thrColLiq #sidebar2, .thrColLiq #sidebar1 { padding-top: 30px; }
.thrColLiq #mainContent { zoom: 1; padding-top: 15px; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<style type="text/css">
<!--
.style1 {
font-size: small
}
body {
background-color: #333333;
background-image: url(../images/tiediepat.jpg);
background-repeat: repeat;
}
.style2 {font-size: medium}
.style3 {font-size: x-small}
a:link {
color: #FFFFFF;
text-decoration: none;
}
a:visited {
color: #241370;
text-decoration: none;
}
a:hover {
color: #3DADF3;
text-decoration: none;
}
a:active {
color: #FFFFFF;
text-decoration: none;
}
.style4 {
color: #000000;
margin: 10px;
}
.thrColLiq #container #header {
}
.thrColLiq #container #header div {
padding: 0px;
margin: 0px;
height: auto;
}
.thrColLiq #container #header .style3 #search {
width: 80%;
height: 17px;
}
-->
</style>
<script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style7 {color: #928F6D}
-->
</style>
</head>

<body class="thrColLiq">

<div id="container">
<div id="header">
  <table width="100%" align="center""height="0" border="0" cellpadding="0" cellspacing="0"  bgcolor="#66CC66">
      <tr>
        <td width="22%" rowspan="2"><div align="center">
          <h2><a href="/index.html"><img src="../images/left_logo.png" alt="Groovy Blueberry" width="190" height="98" hspace="0" vspace="0" border="0" /></a></h2>
        </div></td>
        <td height="102"><div align="center">
          <h1><img src="../images/header-logo.gif" alt="Groovy Blueberry" width="534" height="64" hspace="0" vspace="0" border="0" /></h1>
        </div></td>
        <td width="11%" rowspan="2"><div align="right" class="style3">
          <h5>go home <img src="../images/home.png" alt="Home" width="16" height="15" border="0" /> </h5>
        </div>          <div align="right" class="style3">
            <h5>view cart <img src="../images/basket.png" alt="Cart" width="16" height="15" /> </h5>
          </div>        <div align="right" class="style3">
          <h5>check out <img src="../images/arrow.png" alt="Check Out" width="16" height="15" /> </h5>
        </div>          <div align="right" class="style3">
          <h5>
              <input type="text" name="search" id="search" />
              <img src="../images/search.png" alt="Search" width="16" height="20" hspace="0" vspace="0" border="0" align="baseline" /> </h5>
        </div></td>
      </tr>
     
      <tr>
        <td height="0"><div align="center">
          <h6> about  |   customer service  |   free catalog  |   wishlist  |   contact us </h6>
        </div>          <div align="center"></div>        </td>
      </tr>
    </table>
  <!-- end #header --></div>
  <div id="sidebar1">
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><blockquote>
          <ul id="MenuBar1" class="MenuBarVertical">
            <li></li>
            <li><a href="#">new!</a></li>
            <li><a href="#">best sellers</a></li>
            <li><a href="#">sale</a>                </li>
            <li><a href="#">womens</a></li>
            <li><a href="#">mens</a></li>
            <li><a href="#">kids</a></li>
            <li><a href="#">jewelry</a></li>
            <li><a href="#">accessories</a></li>
            <li><a href="#">bags</a></li>
            <li><a href="#" class="MenuBarItemSubmenu">incense</a>
                <ul>
                  <li><a href="#">sticks</a></li>
                  <li><a href="#">oils</a></li>
                </ul>
            </li>
            <li><a href="#">tapestries</a></li>
            <li><a href="#" class="MenuBarItemSubmenu">gifts</a>
              <ul>
                <li><a href="#">ideas</a></li>
                <li><a href="#">certificates</a></li>
              </ul>
              </li>
            <li><a href="#">wholesale</a></li>
            <p>&nbsp;</p>
          </ul>
          </blockquote></td>
      </tr>
     
      <tr>
        <td><div align="left">
          <blockquote>
            <p><span class="style1 style7">licensing opportunities</span></p>
          </blockquote>
        </div></td>
      </tr>
      <tr>
        <td><div align="left">
          <blockquote>
            <p><span class="style1 style7">mailing list</span></p>
          </blockquote>
        </div></td>
      </tr>
      <tr>
        <td><div align="left">
          <blockquote>
            <p><span class="style1 style7">social networks</span></p>
          </blockquote>
        </div></td>
      </tr>
    </table>
    <!-- end #sidebar1 -->
  </div>
  <div id="mainContent"></p>
  <!-- TemplateEndEditable -->
  <!-- end #mainContent -->
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#333333">
    <tr>
      <td><!-- TemplateBeginEditable name="MainContent" -->
        <h2>Main Content</h2>
        <p class="style2"><br />
            <span class="style3">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti.<br />
          </span></p>
        <p class="style3">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam,  justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam  ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.</p>
        <p class="style3">Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti.</p>
        <p><span class="style3">Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti.</span></p>
        <p><span class="style3">Maecenas urna purus, fermentum id, molestie in, commodo  porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis  ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean  sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at,  odio. Donec et ipsum et sapien vehicula nonummy.</span></p>
      <!-- TemplateEndEditable -->
        <p>&nbsp;</p></td>
    </tr>
  </table>
  </div>
<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
    <div id="header">
      <h6 align="right"><span class="style4">© Groovy Blueberry   | New Paltz, NY 12561 | call today: 555-555-1234 | support@groovyblueberry.com </span></h6>
  <!-- end #header --></div>
<!-- end #container --></div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>


@charset "utf-8";
body {
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: #FFFFFF;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: medium;
background-color: #333333;
background-position: center;
}
.thrColLiq #container {
width: 70%;
text-align: left;
height: 0px;
padding: 0px;
top: 0px;

border-top-width: 0px;
border-right-width: 3px;
border-bottom-width: 3px;
border-left-width: 3px;
border-top-style: groove;
border-right-style: groove;
border-bottom-style: groove;
border-left-style: groove;
border-top-color: #000000;
border-right-color: #000000;
border-bottom-color: #000000;
border-left-color: #000000;
margin-top: 0;
margin-right: auto;
margin-bottom: 0;
margin-left: auto;
background-color: #333333;
}
/* Tips for sidebars:
1. Since we are working in percentages, it's best not to use side padding on the sidebars. It will be added to the width for standards compliant browsers creating an unknown actual width.
2. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".thrColLiq #sidebar1 p" rule.
3. Since Explorer calculates widths after the parent element is rendered, you may occasionally run into unexplained bugs with percentage-based columns. If you need more predictable results, you may choose to change to pixel sized columns.
*/
.thrColLiq #sidebar1 {
float: left; /* this element must precede in the source order any element you would like it be positioned next to */
width: 22%; /* since this element is floated, a width must be given */
height: 75%; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 15px 0; /* top and bottom padding create visual space within this div  */
background-color: #000000;
}
.thrColLiq #sidebar2 {
  float: right; /* this element must precede in the source order any element you would like it be positioned next to */
  width: 23%; /* since this element is floated, a width must be given */
  background: #EBEBEB; /* the background color will be displayed for the length of the content in the column, but no further */
  padding: 15px 0; /* top and bottom padding create visual space within this div  */
}
.thrColLiq #sidebar1 p, .thrColLiq #sidebar1 h3, .thrColLiq #sidebar2 p, .thrColLiq #sidebar2 h3 {
  margin-left: 0px; /* the left and right margin should be given to every element that will be placed in the side columns */
  margin-right: 0px;
}
/* Tips for mainContent:
1. the space between the mainContent and sidebars is created with the left and right margins on the mainContent div.
2. to avoid float drop at a supported minimum 800 x 600 resolution, elements within the mainContent div should be 300px or smaller (this includes images).
3. in the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs.
*/
.thrColLiq #mainContent {
margin-top: 0;
margin-right: 5%;
margin-bottom: 0;
margin-left: 23.5%;
background-position: center;
background-color:#333333
}
/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
  float: right;
  margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page The floated element must precede the element it should be next to on the page. */
  float: left;
  margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain its child floats */
  clear: both;
  height: 0;
  font-size: 1px;
  line-height: 0px;
}
header {
background-color: #66CC33;
margin-top: 50px;

}
.thrColLiq #container #header {
background-color: #333333;
margin-top: 50px;
padding: 0px;
}
.thrColLiq #container #mainContent {
background-color: #333333;
}
.thrColLiq #container {
background-color: #333333;
}



Thanks x infinity

Webhelpforums

Have you tried remove all unnecessary code? i.e. remove everything not related to background color. Then try readd the various sections again to see if/which elements/styles are causing problems
TechSEO360 | MicrosysTools.com  | A1 Sitemap Generator, A1 Website Analyzer etc.

JXEYES

I narrowed it down to the CSS, but still couldn't find the source of the problem.

If anyone is curious and finds out what went wrong, I'd still be interested in hearing but in favour of expediting progress I have simply started again from scratch (read: DW template).

Thanks.