4 Replies Latest reply on Mar 15, 2010 2:29 PM by mojogar-rWvYQh

    Strange gaps in Header and Footer

    mojogar-rWvYQh

      Im getting gaps in the header and footer on some of my pages.  Sometimes the gaps are filled with the background color of the colomn and other times they are the body color which is even weirder.  An example link would be http://www.mojogar.com/pcRepair.aspx .  In IE8 I get a gap on top but not  the bottom.  In Firefox3 the gap is on the bottom and not the top.  ???

       

      here is the markup page;  (followed by the CSS)

       

      <%@ Page Language="VB" ContentType="text/html" %>
      <!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"><!-- InstanceBegin template="/Templates/masterOne.dwt.aspx" codeOutsideHTMLIsLocked="false" -->
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <!-- InstanceBeginEditable name="doctitle" -->
      <title>Untitled Document</title>
      <!-- InstanceEndEditable -->
      <!-- InstanceBeginEditable name="head" -->
      <!-- InstanceEndEditable -->
      <link href="thrColHybHdr.css" rel="stylesheet" type="text/css" /><!--[if IE]>
      <style type="text/css">
      /* place css fixes for all versions of IE in this conditional comment */
      .thrColHybHdr #sidebar1, .thrColHybHdr #sidebar2 { padding-top: 30px; }
      .thrColHybHdr #mainContent { zoom: 1; padding-top: 15px; }
      /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
      </style>
      <![endif]-->
      <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
      <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
      <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
      </head>

      <body class="thrColHybHdr">


      <div id="container">
        <div id="header">
          <!-- end #header -->
          <div class="fltlft"><img src="images/mojoLogoSmall.png" alt="Mojogar digital design &amp; PC repair" width="172" height="41" border="0" usemap="#Map" />
            <map name="Map" id="Map">
              <area shape="rect" coords="2,2,172,39" href="default.html" target="_self" alt="Mojogar Home" />
            </map>
          </div>
      <div class="fltrt"><!-- InstanceBeginEditable name="HeadRight" -->HeadRight<!-- InstanceEndEditable -->
       
        </div>
        <div class="MenuVertDiv">
          <ul id="MenuBar2" class="MenuBarHorizontal">
            <li><a class="MenuBarItemSubmenu" href="#">Design</a>
              <ul>
                <li><a href="webDesign.aspx">Website Design</a></li>
                <li><a href="webDev.aspx">Website Development</a></li>
      <li><a href="logo.aspx">Logo Design</a></li>
              </ul>
            </li>
            <li><a href="#" class="MenuBarItemSubmenu">Animation</a>
              <ul>
                <li><a href="webDev.aspx">Flash Animation</a></li>
      </ul>
            </li>
            <li><a class="MenuBarItemSubmenu" href="#">Support</a>
              <ul>
                <li><a href="pcRepair.aspx">PC Repair</a>            </li>
                <li><a href="virus.aspx">Virus</a></li>
                <li><a href="email.aspx">Email</a></li>
                <li><a href="backup.aspx">Data Backup</a></li>
                <li><a href="wireless.aspx">Wireless</a></li>
                <li><a href="software.aspx">Software</a></li>
                <li><a href="hardwareInstall.aspx">Hardware</a></li>
      <li><a href="server.aspx">Server Repair</a></li>
      <li><a href="busConsult.aspx">Consulting</a></li>
              </ul>
            </li>
            <li><a href="contact.aspx">Contact</a></li>
          </ul>
        </div>
      <!-- end header --></div>
       
       
        <div class="masterBackground">
        <div id="sidebar2">
          <!-- InstanceBeginEditable name="rightSidebar" -->
        <div id="sidebar2">
          <h4>When your computer is having troubles, have a Professional look over your system to update or repair your operating system, audit the installed programs, and check for viruses and other malware.</h4>
          <!-- end #sidebar2 -->
        </div>
        <!-- InstanceEndEditable -->
          <!-- end #sidebar2 -->
        </div>
       
        <div id="mainContent">
          <!-- InstanceBeginEditable name="main" -->
        <div id="mainContent">
          <div class="MarginTopZero">
          <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="580" height="300" title="Computer Support">
            <param name="movie" value="images/flash/PCCollage.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <embed src="images/flash/PCCollage.swf" quality="high" wmode="opaque" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="580" height="300"></embed>
          </object></div>
          <h2>Don't feel alone when your computer breaks.  Computer problems can leave you in the dark about what is wrong.  Help is a call away.</h2>
          <h4>Our tune-up and repair service consists of the following;</h4>
      <li>Operating system updates</li>
          <h5>Operating system updates help the security of the computer and can add features that the manufacturer has been working on to make the life of the end user easier.  Updates come out as frequently as every couple weeks on some operating systems.</h5>
          <li>Programs audit</li>
          <h5>Many <a href="software.aspx" title="Go to our software page" target="_self">applications</a> get added over time and can slow down the performance of any PC by taking up processor and memory resources, not to mention hard drive space.</h5>
          <li>Security overlook</li>
          <h5><a href="virus.aspx" target="_self">Anti-virus</a> definitions need to be kept up-to-date.  New viruses, spyware, trojans, and malware are always being introduced into the wild (the internet is a jungle).  Anti-virus applications need to be kept updated as well.  Subscriptions to paid providers can lapse and updates can be left behind for months if not years (I've seen it happen).</h5>
          <li>Anti-virus fine tuning</li>
          <h5>Many anti-virus programs are bloated applications and won't stop annoying the user with pop-ups and information.  Many users also never know when and how often their anti-virus is scanning.</h5>
          <li>Browser configuration</li>
          <h5>There are literally hundreds of options in your browsers settings for security and optimization.  Fine stunning these can in some cases increase surfing speed.</h5>  
          <li>Start-up & shut down optimizing</li>
          <h5>If your like most people, your PC never starts up fast enough.  Get a thorough audit of what programs and services are starting with your computer and optimize them to increase speed.</h5>
      <!-- end #mainContent -->
        </div>
        <!-- InstanceEndEditable -->
         
          <!-- end #mainContent -->
        </div>
        <!-- end masterBackground --></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="footer">
          <p>Copyright Mojogar 2010</p>
        <!-- end #footer --></div>
      <!-- end #container --></div>
      <script type="text/javascript">
      <!--
      var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
      //-->
      </script>
      </body>
      <!-- InstanceEnd --></html>

       

       

      CSS:

       


      @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: #9FEE00;
      font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
      font-size: 100%;
      background-color: #333;
      }

      h1 {
      font-size: xx-large;
      color: #000;
      }

      h2 {
      font-size: x-large;
      }

      h3 {
      font-size: large;
      }

      h4 {
      font-size: medium;
      }

      h5 {
      font-size: small;
      }

      h6 {
      font-size: x-small;
      }
      p {
      font-size: xx-small;
      }
      h1, h2 {
      padding-top: 20px;
      padding-right: 10px;
      padding-bottom: 4px;
      padding-left: 10px;
      }

      h3, h4, h5, h6, p {
      padding-top: 3px;
      padding-right: 5px;
      padding-bottom: 3px;
      padding-left: 5px;
      }


      li {
      font-weight: bold;
      }
      ul {
      list-style-type: decimal;
      }
      ol {
      font-weight: bold;
      }
      a {
      }

       


      a:link {
      color: #FFF;
      }
      a:hover {
      color: #333;
      background-color: #6C8CD5;
      }
      a:active {
      color: #F00;
      }
      a:visited {
      color: #FF4848;
      }

       


      /* Tips for this Hybrid layout
      1. Since the side columns em-based sizing is based on the user's default font size, you will want to be sure that background graphics in the columns take that into account. Built correctly, this is more accessible for those that need larger font sizes, since the width of the columns remains proportionate. If this is undesirable with your design, simply change the width to a pixel size and be sure to change the margins on the #mainContent div accordingly.
      2. Since the sizing of side columns in this layout are based on the 100% font size in the body element, if you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the column widths will downsize proportionately. You may want to increase their widths, and the size of the #mainContent div's side margins, to compensate for this.
      3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
      4. The #container div is not necessary for this layout at the 100% width. You may want to use it to create faux columns or limit the width of the layout.
      5. It is not neccessary to have the 100% width on the #container div since, by nature, a div takes up 100% of the available space. It is here so that if you want to decrease the size of the overall container - perhaps leaving a bit of margin on each side - this will already be available for adjustment.
      */
      .thrColHybHdr #container {
      width: 780px;
      /*margin: 0 auto;  the auto margins (in conjunction with a width) center the page if needed */
      text-align: left;
      padding: 0px;
      margin-top: 0px;
      margin-right: auto;
      margin-bottom: 0px;
      margin-left: auto;
      }

      .thrColHybHdr #header {
      background-color: #C9F76F;
      height: 100%;
      width: 780px;
      margin: 0px;
      padding: 0px;
      }
      .thrColHybHdr #header h1 {
      margin: 0;
      padding: 0px;
      }

      /* Tips for sidebar1:
      1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
      2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width.
      3. 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 ".thrColHybHdr #sidebar1 p" rule.
      */
      .thrColHybHdr #sidebar1 {
      width: 13em;
      border-top-width: thick;
      border-top-style: solid;
      border-top-color: #C06;
      float: left;
      height: auto;
      }
      .thrColHybHdr #sidebar2 {
      width: 200px;
      text-align: center;
      margin: 0px;
      padding: 0px;
      float: right;
      }
      /*.thrColHybHdr #sidebar1 h3, .thrColHybHdr #sidebar1 p, .thrColHybHdr #sidebar2 p, .thrColHybHdr #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. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
      2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
      3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
      4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
      */
      .thrColHybHdr #mainContent {
      text-align: center;
      margin-right: 0px;
      margin-top: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      width: 580px;
      background-color: #2A4480;
      color: #C9F76F;
      padding: 0px;
      }
      .MarginTopZero {
      margin: 0px;
      padding: 0px;
      }

      .busConslt {
      height: 600px;
      width: 800px;
      }

      .idea {
      height: auto;
      width: 100%;
      }


      .thrColHybHdr #footer {
      padding: 0;
      background-color: #C9F76F;
      margin: 0px;
      }
      .thrColHybHdr #footer p {
      margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
      padding: 0px; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
      color: #000;
      }


      /* 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;
      }
      .fltlft { /* this class can be used to float an element left in your page */
      float: left;
      margin-right: 0px;
      padding-left: 5px;
      padding-top: 3px;
      padding-bottom: 3px;
      }
      .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 a float */
      clear:both;
      height:0;
      }
      #defMainLft {
      width: 49%;
      float: left;
      text-align: center;
      }
      #defMainRt {
      width: 49%;
      float: right;
      text-align: center;
      }
      .absolRgt {
      position: absolute;
      top: 0px;
      right: 0px;
      }
      .relRgt {
      position: relative;
      top: 0px;
      right: 0px;
      }
      .defFull {
      position: relative;
      height: 263px;
      width: 100%;
      border-bottom-width: medium;
      border-bottom-style: solid;
      border-bottom-color: #ff4900;
      }
      .absolLft {
      position: absolute;
      top: 0px;
      left: 0px;
      }
      .defFullTop {
      position: relative;
      width: 600px;
      border-top-width: thick;
      border-top-style: solid;
      border-top-color: #000;
      margin: 0px;
      }
      .tuneUpTop {
      background-color: #000;
      color: #FFF;
      margin: 0px;
      padding: 0px;
      }
      .contactForm {
      width: 470px;
      height: auto;
      left: auto;
      right: auto;
      }
      .borderRight {
      border: medium solid #A62F00;
      margin-top: 0px;
      margin-bottom: 0px;
      margin-left: 0px;
      }
      .MenuVertDiv {
      margin-bottom: 0px;
      clear: both;
      height: 38px;
      background-color: #A62F00;
      width: 100%;
      }
      .masterBackground {
      background-color: #BF5930;
      margin: 0px;
      padding: 0px;
      }