Results 1 to 7 of 7

Thread: CSS Frames

  1. #1
    Join Date
    Mar 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question CSS Frames

    I got a CSS frames layout from Dynamic drive (http://www.dynamicdrive.com/style/la...frames-layout/) with left, top & main divs. However I need another div before main which works just like it except it doesn't scroll. Just wondering how do I place that frame?

    Thanks in advance for your help.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    What do you mean by one that doesn't scroll?
    Jeremy | jfein.net

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

    Default

    Code:
    overflow:scroll;
    apply that CSS style to whatever element you wish to scroll

  4. #4
    Join Date
    Mar 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks I know how to scroll or not:

    what I"m looking for is I need to put a top most css frame with 100% width for breadcrumbs. It would move the left, header & main frames down by whatever height I would set that to, like 50px;

    the other one I need to place it below header and left of main frame. Please view the example page and you'll know what I'm talking about. Its on dynamic drive itself & I need to just modify it a little by adding 2 more frames.

    Thanks

  5. #5
    Join Date
    Mar 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reply.

    I know how to scroll a div with overflow property.
    Please view the example on dynamic drive. I need to modify that page by adding 2 more frames on that page
    1 - on top of the page with 100% width, so left=0

    2- one under the header and to the left of main frame.

    [breadcrumbs header]
    ------------------------------
    left frame | main header frame
    --------------------
    | middle frame | main frame

  6. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Is this what you're looking for?

    HTML:
    Code:
    <div id="header">
           Header
    </div>
    Add that right below the <body> tag

    CSS:
    Code:
    div#header {  height:50px; width:100%; }


    For your second one:
    Code:
    <div id="middleframe">
         Middle Frame
    </div>
    Place this INSIDE the maincontent div

    CSS:
    Code:
    div#middleframe { float:left; background:red; height:300px; }

  7. The Following User Says Thank You to Medyman For This Useful Post:

    balushahi (03-13-2008)

  8. #7
    Join Date
    Mar 2008
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    When I added your given code for new divs, the results were like this -

    In FF -
    new header
    ------------
    left | old top frame
    | new middle layer [old main frame] (the new middle layer also scrolls with the main frame, it needs to be separate independent frame. Main frame picked the height of this new middle layer and doesn't show the scrolls)

    {The above layout is what basically I'm going for. all those layers need to behave like independent frames}

    In IE, however, its like this:
    left | old topframe
    | new header
    | middle layer (this should not scroll - overflow:hidden & no set height, needs to be independent frame (should behave just like the left frame)
    | old mainframe (scroll doesn't show at all)

    Does that make sense?
    Last edited by balushahi; 03-13-2008 at 04:26 PM.

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
  •