title: div scroll with main scrollbar
body: <p>My webpage i am currently working on only has one main content div that is set to a fixed size. I would like to make it scrollable with the browser window scroll bar and not the "in div" scroll bar.</p>
  
  <p>content div size is width: 1076px, height: 475px</p>
  
  <p>basicly what I have done is I have a edge fading image in a floating div actually over my content div so if I were to use the scroll bar inside the div, I would not be able to select it or click on it because the of the floating div. So im looking for some help to get a scroll bar to work with my layout.</p>
  
  <p>I have been trying to get this to work for my page, but I dont know how to go about doing this, especially with my layout. heres my test link to my page:</p>
  
  <pre><code>http://184.66.76.75/gxwd_v2/
  </code></pre>
  
  <p>So what I'm looking for is to use the main scroll bar from browser to scroll the "maincontent" div with its fixed size. so when content is larger than fixed size you can scroll the content down. With my layout, if i was to use the div scroll bar inside div. you can't scroll because the div is not "active". not only that, you can select that div because of my content_overlap div, it floats over the content box.</p>
  
  <p>CSS File:</p>
  
  <pre><code>body {
  background-color: #000000;
  background-image: url(images/background.png);
  background-repeat: no-repeat;
  background-position: center;
  margin: 0px auto;
  padding: 0px;
  color: #000000;
  overflow: hidden;
  }
  
  /* ~~ this fixed width container surrounds all other elements ~~ */
  .container {
  width: 1076px;
  height: 530px;
  margin: 220px auto; /* the auto value on the sides, coupled with the width, centers the layout */
  }
  
  /* ~~ This is the layout information. ~~ */
  .menu {
  width: 800px;
  margin-left: 13%;
  margin-right: 13%;
  text-align: center;
  }
  .content {
  padding: 0px 0px;
  }
  .content_overlap {
  width: 1079px;
  height: 504px;
  background-image: url(images/fade.png);
  background-position: top;
  background-repeat: no-repeat;
  position: absolute;
  top: 252px;
  left: 50%;
  margin-left: -538px;
  }
  .maincontent {
  position: relative;
  top: 20px;
  max-width: 1076px !important;
  max-height: 460px !important;
  overflow: auto;
  padding: 0px 0px 0px 0px;
  }
  </code></pre>
  
  <p>PHP file:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;title&gt;GuberX Web Development &amp;amp; Design&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css" href="oneColFixCtr.css"&gt;
  &lt;link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="mobile.css"&gt;
  &lt;link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="iphone4s.css" /&gt;
  &lt;link rel="stylesheet" media="only screen and (min-device-width: 481px)" href="desktop.css" type="text/css"&gt;
  &lt;meta name="viewport" content="initial-scale=0.5"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;div class="container"&gt;
    &lt;div class="content"&gt;
  &lt;div class="menu"&gt;&lt;img src="images/menu/home-1.png"&gt;&lt;img src="images/menu/spacer.png"&gt;&lt;img src="images/menu/portfolio-1.png"&gt;&lt;img src="images/menu/spacer.png"&gt;&lt;img src="images/menu/services-1.png"&gt;&lt;img src="images/menu/spacer.png"&gt;&lt;img src="images/menu/contact-1.png"&gt;&lt;/div&gt;
      &lt;div class="maincontent"&gt;
          Test Possition of Text and whatnot1&lt;br /&gt;
          Test Possition of Text and whatnot2&lt;br /&gt;
          Test Possition of Text and whatnot3&lt;br /&gt;
          Test Possition of Text and whatnot4&lt;br /&gt;
          Test Possition of Text and whatnot5&lt;br /&gt;
          Test Possition of Text and whatnot6&lt;br /&gt;
          Test Possition of Text and whatnot7&lt;br /&gt;
          Test Possition of Text and whatnot8&lt;br /&gt;
          Test Possition of Text and whatnot9&lt;br /&gt;
          Test Possition of Text and whatnot10&lt;br /&gt;
          Test Possition of Text and whatnot11&lt;br /&gt;
          Test Possition of Text and whatnot12&lt;br /&gt;
          Test Possition of Text and whatnot13&lt;br /&gt;
          Test Possition of Text and whatnot14&lt;br /&gt;
          Test Possition of Text and whatnot15&lt;br /&gt;
          Test Possition of Text and whatnot16&lt;br /&gt;
          Test Possition of Text and whatnot17&lt;br /&gt;
          Test Possition of Text and whatnot18&lt;br /&gt;
          Test Possition of Text and whatnot19&lt;br /&gt;
          Test Possition of Text and whatnot20&lt;br /&gt;
          Test Possition of Text and whatnot21&lt;br /&gt;
          Test Possition of Text and whatnot22&lt;br /&gt;
          Test Possition of Text and whatnot23&lt;br /&gt;
          Test Possition of Text and whatnot24&lt;br /&gt;
          Test Possition of Text and whatnot25&lt;br /&gt;
          Test Possition of Text and whatnot26&lt;br /&gt;
          Test Possition of Text and whatnot27&lt;br /&gt;
          Test Possition of Text and whatnot28&lt;br /&gt;
          Test Possition of Text and whatnot29&lt;br /&gt;
          Test Possition of Text and whatnot30&lt;br /&gt;
      &lt;/div&gt;
  &lt;/div&gt;&lt;!-- end .content --&gt;
  &lt;div class="content_overlap"&gt;&lt;/div&gt;  &lt;!-- This div has a background image that has fading edges for the content box --!&gt;
  &lt;/div&gt;&lt;!-- end .container --&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>