4 Replies Latest reply on Mar 14, 2010 3:35 PM by orange carrot

    text div crawling up under form box when reducing view

    orange carrot

      Hi,

      I'm having trouble getting the text under the form on this page - http://www.co2tropicaltrees.com/register/register.html - to stay fixed in place, e.g. so it doesn't move up under the form when you reduce the zoom on the page. If anyone can offer a suggestion, I would be very gratefull

      Francine

      opps, I forgot to supply the css file....I'm pasting it below

      @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;
          font-family: Verdana, Arial, Helvetica, sans-serif;
          font-size: 100%;
          background-color: #434343;
      }
      #topgreenbar {
          background-image: url(images/new2_top_grn_bar.jpg);
          background-repeat: repeat-x;
          height: 28px;
      }
      .menucontainer     {
          width: 666px;
          margin-top: 0px;
          margin-bottom: 0px;
          margin-left: 530px;
          font-family: Arial, Helvetica, sans-serif;
          font-size: 6.5pt;
          color: #FFFFFF;
          height: 28px;
          position: relative;
          margin-right: 0px;
      }
      .thrColHybHdr #topgreenbar {
          width: 100%;
          position: relative;
          top: auto;
      }
      #wrapforglow {
          background-image: url(images/backgr_w_glow.jpg);
          background-repeat: repeat-y;
          background-color: #434343;
      }
      #gohome {
          height: 63pt;
          width: 40px;
          position: absolute;
          top: 47px;
          left: 2pt;
          right: 0pt;
          bottom: 0pt;
      }
      #homebtn {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 100%;
          line-height: 30px;
          color: #FFFFFF;
          background-color: #009900;
          text-align: center;
          height: 28px;
          width: 85px;
          padding: 0px;
          clear: none;
          float: left;
          margin-top: 0px;
          margin-right: 15px;
          margin-bottom: 0px;
          margin-left: 0px;
          position: relative;
          display: inline;
          font-style: normal;
      }
      #aboutbtn {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 100%;
          line-height: 30px;
          color: #FFFFFF;
          background-color: #009900;
          text-align: center;
          padding: 0px;
          clear: none;
          float: left;
          height: 28px;
          width: 135px;
          margin-top: 0px;
          margin-right: 15px;
          margin-bottom: 0px;
          margin-left: 0px;
          position: relative;
          display: inline;
          font-style: normal;
      }
      #prgrmbtn {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 100%;
          line-height: 30px;
          color: #FFFFFF;
          background-color: #009900;
          text-align: center;
          clear: none;
          float: left;
          height: 28px;
          width: 80px;
          padding: 0px;
          margin-top: 0px;
          margin-right: 15px;
          margin-bottom: 0px;
          margin-left: 0px;
          position: relative;
          display: inline;
          font-style: normal;
      }
      #cntctbtn {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 100%;
          line-height: 30px;
          color: #FFFFFF;
          background-color: #009900;
          text-align: center;
          padding: 0px;
          clear: none;
          float: left;
          height: 28px;
          width: 90px;
          position: relative;
          display: inline;
          font-style: normal;
          margin-right: 15px;
      }
      #treebtn {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 100%;
          line-height: 30px;
          color: #FFFFFF;
          background-color: #009900;
          text-align: center;
          clear: none;
          float: left;
          height: 28px;
          width: 70px;
          padding: 0px;
          margin-top: 0px;
          margin-right: 15px;
          margin-bottom: 0px;
          margin-left: 0px;
          position: relative;
          display: inline;
          font-style: normal;
      }
      #purcshebtn {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 100%;
          line-height: 30px;
          color: #FFFFFF;
          background-color: #FF3300;
          padding: 0px;
          clear: none;
          float: left;
          height: 28px;
          width: 110px;
          position: relative;
          text-align: center;
          display: inline;
          margin-left: 15px;
          font-style: normal;
      }

       

      /* 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: 1117px;
          margin-left: 56px;
          color: #FFFFFF;

      .thrColHybHdr #header {
          z-index: 1;
          padding-top: 10px;
          padding-right: 10px;
          padding-bottom: 0px;
          padding-left: 10px;
      }
      .thrColHybHdr #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 */
          font-family: Arial, Helvetica, sans-serif;
          color: #FFFFFF;
      }
      #sidebar1 font {
          font-family: Arial, Helvetica, sans-serif;
          font-style: normal;
          padding-left: 12px;
      }

       

      /* 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: 323px;
          padding-top: 3px;
          padding-bottom: 15px;
          float: left;
          padding-left: 12px;
          margin: 0px;
          height: 606px;
      }
      #sidebar1 #car {
          height: 172px;
          width: 270px;
      }
      #sidebar1 h1 {
          font-family: Arial, Helvetica, sans-serif;
          color: #33CC00;
          font-size: 10px;
          padding-left: 30px;
          margin-top: -5px;
      }
      #sidebar1 h2 {
          font-family: Arial, Helvetica, sans-serif;
          color: #FFFFFF;
          margin-left: 12px;
      }
      #linkexchange   {
          margin-top: 42px;
          margin-right: 0px;
          margin-bottom: 0px;
          margin-left: 42px;
          height: 41px;
          width: 152px;
      }
      #sidebar1  #resources {
          height: 47px;
          width: 152px;
          margin-top: 42px;
          margin-left: 42px;
          margin-right: 0px;
          margin-bottom: 0px;
      }
      #sidebar1  #ebook {
          height: 47px;
          width: 152px;
          margin-left: 42px;
          margin-top: 45px;
          margin-right: 0px;
          margin-bottom: 0px;
      }
      #sidebar1 h5 {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 14pt;
          font-style: normal;
          font-weight: normal;
          margin-left: 8px;
          color: #FFFFFF;
          margin-top: 0px;
          margin-right: 0px;
          margin-bottom: 0px;
      }
      #sidebar1 img {
          padding-top: 5px;
          margin: 0px;
          padding-right: 0px;
          padding-bottom: 0px;
          padding-left: 0px;
      }
      #centreofpage {
          float: left;
          padding: 0px;
          margin: 0px;
      }
      #centreofpage #form {
          position: absolute;
          height: 563px;
          width: 671px;
          left: 435px;
          top: 100px;
      }
      #wrapfortext {
          height: 124px;
          width: 591px;
          margin-left: 422px;
          margin-top: 22px;
          margin-right: 0px;
          margin-bottom: 22px;
          text-align: left;
          position: relative;
          display: block;
          float: left;
      }
      #centreofpage  #receive {
          height: 154px;
          width: 591px;
          margin-top: 522px;
          margin-right: 0px;
          margin-bottom: 22px;
          margin-left: 20px;
          font-family: Arial, Helvetica, sans-serif;
          font-size: 11pt;
          line-height: 17pt;
          color: #FFFFFF;
          padding-left: 22px;
          left: -22px;
          float: left;
          padding-top: 0px;
          padding-right: 0px;
          padding-bottom: 0px;
      }
      #centreofpage  #receive  p {
          margin-top: 22px;
          margin-left: 18px;
          margin-right: 0px;
          margin-bottom: 0px;
          font-family: Arial, Helvetica, sans-serif;
          color: #FFFFFF;
          float: left;
      }

       

      .thrColHybHdr #sidebar2 {
          width: 321px;
          height: 321px;
          z-index: 0;
          padding: 0px;
          margin: 0px;
          float: right;
      }

       

      .thrColHybHdr #sidebar1 h3, .thrColHybHdr #sidebar1 p, .thrColHybHdr #sidebar2 p, .thrColHybHdr #sidebar2 h3 {
          margin-left: 14px; /* the left and right margin should be given to every element that will be placed in the side columns */
          margin-right: 10px;
          font-family: Arial, Helvetica, sans-serif;
          margin-top: -14px;
      }
      /* 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 {
          margin-top: 0;
          margin-right: 0px;
          margin-bottom: 0px;
          margin-left: 0px;
          padding-top: 0px;
          padding-right: 0px;
          padding-bottom: 0;
          padding-left: 0px;
          height: 987px;
      }
      .thrColHybHdr   #blackfooter {
          background-image: url(images/blk_bar_btm.jpg);
          width: 1141px;
          background-repeat: no-repeat;
          height: 201px;
          margin-top: 12px;
          margin-right: 0px;
          margin-bottom: 0px;
          margin-left: -3px;
          padding: 0px;
      }
      #fastcar {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 14px;
          width: 72px;
          margin-top: -20px;
          margin-left: 162px;
          color: #FFFFFF;
      }
      #fastfleets {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 14px;
          color: #FFFFFF;
          width: 92px;
          margin-top: -17px;
          margin-left: 252px;
      }
      #blog {
          width: 179px;
          margin-left: 512px;
          margin-top: -52px;
          clear: none;
      }
      #partners {
          width: 215px;
          margin-left: 52px;
          margin-top: -38px;
      }
      #uofalogo {
          width: 116px;
          margin-left: 42px;
          margin-top: 20px;
      }
      #omacha {
          width: 136pt;
          margin-top: -52px;
          margin-left: 320px;
          height: 50pt;
      }
      #amazonia {
          width: 110pt;
          margin-top: -65px;
          margin-left: 168px;
          height: 45pt;
      }
      #questions {
          font-family: Arial, Helvetica, sans-serif;
          font-size: 8px;
          width: 195px;
          margin-top: 65px;
          height: 12px;
          margin-left: 442px;
          padding-left: 82px;
          padding-bottom: 0px;
          clear: none;
      }
      #socialntwrks {
          width: 82px;
          margin-left: 895px;
          margin-top: -95px;
          clear: none;
      }
      #fcebook {
          width: 72px;
          margin-top: -70px;
          margin-left: 858px;
          clear: both;
      }
      #utube {
          margin-top: -29px;
          margin-left: 0px;
          width: 65px;
          clear: both;
          margin-bottom: 0px;
          float: left;
          margin-right: 0px;
          padding-left: 952px;
      }
      .thrColHybHdr   #blackfooter   p {
          padding-top: 0px;
          padding-right: 0;
          padding-bottom: 0px;
          padding-left: 0px;
          margin-top: 0;
          margin-right: 0;
          margin-bottom: 0;
          margin-left: 0px;
          color: #FFFFFF;
      }
      .thrColHybHdr  #footer2  {
          background-image: url(../images/btm_grn_bar.jpg);
          background-repeat: repeat;
          height: 128pt;
      }
      ul#footermenu  {
          padding-top: 5px;
          margin-left: 130pt;
          width: 100%;
          text-decoration: none;
          list-style-type: none;
          margin-top: 0px;
          margin-right: 0px;
          margin-bottom: 0px;
          padding-right: 0px;
          padding-bottom: 0px;
          padding-left: 0px;
      }
      ul#footermenu  li  a  {
          font-size: 13pt;
          color: #CCFF00;
          text-decoration: none;
          font-family: Arial, Helvetica, sans-serif;
          font-style: normal;
      }
      ul#footermenu li {
          float: left;
          padding-left: 25px;
          padding-right: 10px;
      }
      #mailingadd {
          width: 320px;
          margin-top: 0pt;
          margin-right: 0px;
          margin-bottom: 0px;
          margin-left: 0px;
          padding-left: 125pt;
          padding-top: 42px;
          padding-right: 0px;
          padding-bottom: 0px;
      }
      #purchasenowbtn {
          width: 151pt;
          padding-top: 2pt;
          padding-right: 0pt;
          padding-bottom: 0pt;
          padding-left: 0pt;
          margin-top: -34pt;
          margin-right: 0pt;
          margin-bottom: 0pt;
          margin-left: 433pt;
      }
      #mainaddress {
          width: 252pt;
          margin-top: -48pt;
          margin-right: 0pt;
          margin-bottom: 0pt;
          margin-left: 594pt;
      }

       

      /* 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 */
          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 a float */
          clear:both;
          height:0;
          font-size: 1px;
          line-height: 0px;
      }