• Sjay2k

    (@sjay2k)


    Are there any themes that have a a fixed sidebar/header, such that when you scroll down, you are only scrolling through my wordpress entries?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Sjay2k

    (@sjay2k)

    bump, anyone? ??

    ivorpad

    (@ivorpad)

    Just choose a good theme, make sure the theme have a header with an image, go to class (.header) or id (#header) “header” and add this attribute background-attachment: fixed;

    For the sidebar, i’m not quite sure about how i do this, but i found this left-fixed sidebar code:

    <!-- IE in quirks mode -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
    <title>Fixed right-sidebar</title>
    <style type="text/css">
     body{
      margin:0;
      padding:0 <length> 0 0;
     }
     div#right-sidebar{
      position:absolute;
      top:0;
      right:0;
      width:<length>;
      height:100%;
     }
     @media screen{
      body>div#right-sidebar{
       position:fixed;
      }
     }
     * html body{
      overflow:hidden;
     }
     * html div#content{
      height:100%;
      overflow:auto;
     }
    </style>
    <div id="right-sidebar"> right-sidebar </div>
    <div id="content"> content </div>

    Source:

    i hope it helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Static Header and Sidebar’ is closed to new replies.