title: Making a toolbar stay at the top in CSS
body: <p>In my real website I have actual content but this example should suffice.  LOGO is actually a logo image.  The toolbar is also an image.  I used the following code to keep the toolbar at the bottom by simply using bottom:0 as opposed to top:35px.  I basically want the toolbar to stick to the top of the page and only get pushed down by the logo.  When the uesr scrolls down the toolbar should stay at the top of the page.  All content should flow under the toolbar hence the high z-index.  The way I have it the toolbar is riding at 35px the whole way down.  I know the reason why but I do not know how to accomplish what I am trying to.</p>
  
  <pre><code>            &lt;html&gt;
                      &lt;head&gt;
                      &lt;style type="text/css"&gt;
                      #logo {
                              width:100%;
                              height:34px;
                      }
  
                      #toolbar {
                              position: fixed;
                              top: 35px;
                              z-index:1000;
                      }
                      &lt;/style&gt;
                      &lt;/head&gt;
                      &lt;body&gt;
                              &lt;div id="logo"&gt;LOGO&lt;/div&gt;
                              &lt;div id="toolbar"&gt;TOOLBAR&lt;/div&gt;
                              &lt;div id="content"&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                                      &lt;p&gt;lorem ipsum doler&lt;/p&gt;&lt;br /&gt;
                              &lt;/div&gt;
                      &lt;/body&gt;
              &lt;/html&gt;
  </code></pre>