Results 1 to 4 of 4

Thread: problems with fixed positioning / frames

  1. #1
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default problems with fixed positioning / frames

    hello, i am trying to emulate a simple top/bottom frame website with css, where the top section will contain a logo and navigation, and the bottom will mirror another page entirely, like with frames or iframes (yes i'm aware of the criticisms, but i have my reasons). here's the code:

    Code:
    <!-- IE in quirks mode -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
    <title>Fixed header</title>
    <style type="text/css">
     body{
      margin:0;
      padding:<length> 0 0 0;
     }
     div#header{
      position:absolute;
      top:0;
      left:0;
      width:100%;
      height:<length>;
     }
     @media screen{
      body>div#header{
       position: fixed;
      }
     }
     * html body{
      overflow:hidden;
     } 
     * html div#content{
      height:100%;
      overflow:auto;
     }
    </style>
    <div id="header"> header </div>
    <div id="content"> content </div>
    so basically, i want the second DIV to just be a frame, without all the glitches that come along with iframes. ideas?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    glitches that come with iframes?

    you can do this with AJAX, however all of your links would need to contain the AJAX call and definition to the "frame" which I will assume you dont have access to.

  3. #3
    Join Date
    Jul 2005
    Location
    UK
    Posts
    159
    Thanks
    15
    Thanked 0 Times in 0 Posts

    Default

    can you tell me how, i am not familiar...

  4. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    If you want a navigation menu in the top frame whose subitem must show on top of the main frame, then you could apply the technique posted here.

    Arie Molendijk.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •