Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Frameset Help - Center Page

    I've been tinkering with a page that uses framesets and can't seem to figure out how to center the entire page. Any time I try to enclose the frameset elements in anything (like a <div> or <table> or whatever) it causes the page to not load (just goes blank). I tried nesting the existing framesets in another frameset with a row and column width of 100% but the "align" tag doesn't seem to work for framesets.

    I'm new to framesets so apologies for not knowing more about them.

    Any help would be much appreciated.

    Thanks!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Create a page with an iframe and center the iframe.

    Make your frameset page the source of the iframe

    Using frames this way is not really recommended as problems with navigation, search engines, accessability etc may crop up.
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for the tip!

    i would like to make the page as compatible as possible. do you have an alternate suggestion?

    what i'm looking for is a two row, two column, page where only the bottom right cell (main body) scrolls and where the scroll bar for this cell is the browser's scroll bar (as opposed to being on the frame itself).

    i tried to find a basic template like this to work off of and the one using the framesets was all i could find.

    thanks again!

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,306
    Thanks
    29
    Thanked 277 Times in 271 Posts
    Let me guess; you want something like this?†
    †If you’re using Internet Explorer, the demo requires version 7.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #5
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    that's it!

    this doesn't work in older version of IE though? (i'm using firefox so it worked fine for me)

  • #6
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,785
    Thanks
    8
    Thanked 131 Times in 129 Posts
    you can make older IE do it with some trickery. Search around for position:fixed and there are a lot of threads about it. best to feed an alternate style sheet for IE older than 7 as there are some quirks in those browsers.
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis


  •  

    Posting Permissions

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